You cannot use a service located locally. You may need to configure DNS on your device or emulator so that it can resolve the host name. Way
Settings → Wireless control → Mobile networks → Access point names
click on the one that is used, fill in the proxy and port with your DNS server.
Local Service Access
source
share