Mobile Device emulator cannot access localhost

徘徊边缘 提交于 2019-12-10 11:25:51

问题


I am using Windows Mobile 6 Professional Emulator and Windows Mobile Device Center. I connected and cradled the emulator to my computer.

I am trying to connect from the browser of the emulator to a webservice that is deployed in the IIS of my computer (same machine where the emulator is installed). If I connect my computer to the internet, I can access any website, including my local WS (using the IP returned by ipConfig). The problem is when I disconnect the computer from the Internet: I cannot access my local web service using the IP (internal one returned by ipconfig), or machine name.

Do you have any ideea what settings am I missing? I am sure this it's possible somehow, I just don't know how...

PS: The goal is to access the WS from a mobile application, but until I cannot access it from the browser, I cannot access it from the application either.

Thank you!


回答1:


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 :)




回答2:


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.



来源:https://stackoverflow.com/questions/2802505/mobile-device-emulator-cannot-access-localhost

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