I’ll answer myself. I wrote nonsense there. In fact, the problem is in the local DNS. Usually, names are linked to addresses by some external DNS service. In the local network, this is not the case and the Multicast DNS service is used https://en.wikipedia.org/wiki/Multicast_DNS. This service is supported by Windows-based devices, Apple-based devices, but Android supports this service in a limited way. Starting with version 8, and not all devices.