Name resolution on the internal server does not work (device and emulator)

I am trying to connect (HttpClient) to an internal server in my application via wi-fi. But every time I get an UnknownHostException if I use the server domain name (http: // domainname / ..). If I use Ip instead, it works well. This happens not only on the emulator, but also on the real device (desire htc).

Has anyone had the same problem? The solutions that I found on the network apply only to the emulator. http://www.mail-archive.com/ android-developers@googlegroups.com /msg16951.html

thanks for the support

+3
source share
1 answer

, Android DHCP " DNS". . # 8030.

+2

Source: https://habr.com/ru/post/1766385/


All Articles