移动设备模拟器无法访问localhost [英] Mobile Device emulator cannot access localhost

查看:313
本文介绍了移动设备模拟器无法访问localhost的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Windows Mobile 6 Professional Emulator和Windows Mobile Device Center。我连接并将模拟器连接到我的计算机。

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

我正在尝试从模拟器的浏览器连接到部署在我的计算机的IIS中的Web服务(同样的安装仿真器的机器)。如果我将计算机连接到互联网,我可以访问任何网站,包括我的本地WS(使用ipConfig返回的IP)。问题是当我从Internet断开计算机时:我无法使用IP(ipconfig返回的内部IP)或计算机名访问本地Web服务。

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:目标是从移动应用程序访问WS,但直到我无法从浏览器访问它,我也无法从应用程序访问它。

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.

谢谢!

推荐答案

这将有助于查看您正在使用的URL。根据您使用的是主机名,完全限定的域名还是IP地址,我建议使用不同的东西。在连接时,您是否在本地网络中有一个解析主机的DNS服务器?我的猜测是,通过主机的IP地址,它可以工作。唉,你很久以前就问了这个问题,可能不再需要答案了。

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.

这篇关于移动设备模拟器无法访问localhost的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆