Mobile device emulator cannot access localhost
I am using Windows Mobile 6 Professional Emulator and Windows Mobile Device Center. I hooked up an emulator and connected it to my computer.
I am trying to connect from the emulator browser to a web service that is deployed to the IIS of my computer (the same computer 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 address (internal, returned by ipconfig) or the machine name.
Do you have any ideas what settings I am missing? I'm sure it's possible somehow, I just don't know how ...
PS: The goal is to access the WS from the mobile app, but while I can't access it from the browser, I also can't access it from the app.
Thanks!
a source to share
I face the same problem before, the connection will be successful if the computer has a network (intranet, internet). If no network connection is found, it will not work, even if this device.
I think it has to do with the way the emulator / device connects to the computer, finally I partially solved the problem by connecting the computer to the network, if there is no network at all near the computer you can install a Virtual Machine to have one :)
a source to share
It would help to see the url you are using. Depending on whether you are using a hostname, fully qualified domain name, or an IP address, I suggest different things. Do you have a DNS server on your local network that resolves the host when connecting? I am guessing that with the IP address of the host it would work. Alas, you asked a question a long time ago and probably didn't need an answer anymore.
a source to share