Mobile Device emulator cannot access localhost

萝らか妹 提交于 2019-12-06 15:05:47

I face same problem before, the connection will success if there is network(intranet,internet) on the computer. If no network connection found it will not work, even if it's a device.

I think it's related to the way that the Emulator/device connect to the computer, finally I solved the problem partially by connecting the computer to a network, if there is no network at all beside the computer you can install Virtual Machine to have one :)

It would have helped to see the URL that you are using. Depending on whether you use the host name, fully qualified domain name, or the IP address, I would suggest different things. Do you have a DNS server in the local network that resolves the host when you are connected? My guess is that with the host's IP address it would have worked. Alas, you asked the question a long time ago and probably no longer need an answer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!