开发者

Android name resolution in internal server doesn't work (device and emulator)

开发者 https://www.devze.com 2023-01-17 05:33 出处:网络
i try to connect (HttpClient) to an internal server in my app via wi-fi. But every time i got an UnknownHostException if I use the domain name of the server (http://domainname/..). If i use the Ip ins

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

Did anyone got the same problem? Solutions i found in web only refer the problem to emulator. http开发者_JS百科://www.mail-archive.com/android-developers@googlegroups.com/msg16951.html

Thanks for your support


It seems that Android does not implement the DHCP option "DNS search list". See bug #8030.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号