In Android emulator I encounter "Connection is lost.Host is Unresolved" error while communicating with server (creating websocket
) if URL
string is used. instead if IP address
and port
number is used it works fine. I have configured it in host file of my ubuntu powered pc
. It pings and all from the desktop.
any ideas?
Since the emulator skips the systems hosts file, change the etc/hosts file of the emulator, follow this link http://eclecticdreams.com/blog/getting-a-hosts-file-onto-an-android-emulator
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments