简体   繁体   English

无法从非Windows计算机远程连接到IIS Express

[英]Can't connect to IIS Express remotely from non-Windows machine

I am working on an ASP.NET application and I'd like the ability to test the application on my (Android) phone and iPad by connecting directly to my local IIS Express development server. 我正在开发ASP.NET应用程序,我希望能够通过直接连接到本地IIS Express开发服务器在我的(Android)手机和iPad上测试该应用程序。 I followed the instructions here on setting up IIS Express to allow remote connections. 我按照此处有关设置IIS Express以允许远程连接的说明进行操作。 I am now able to view the application from another Windows machine on my local network by visiting http://my-computer-name:my-port-number/ in the browser. 现在,我可以通过在浏览器中访问http://my-computer-name:my-port-number/从本地网络上的另一台Windows计算机上查看该应用程序。 However, I am unable to view the application from any other platform (Android, iOS, and OS X - tested in both Chrome and Firefox); 但是,我无法从任何其他平台(Android,iOS和OS X-在Chrome和Firefox中都经过测试)查看该应用程序; the browser silently churns away for a minute or so before giving me a generic "could not connect to my-computer-name:my-port-number " page. 在给我一个通用的“无法连接到my-computer-name:my-port-number ”页面之前,浏览器会静静地滚动一分钟左右。

What is the difference between the platforms that is disallowing me from viewing my ASP.NET application on non-Windows machines? 不允许我在非Windows计算机上查看我的ASP.NET应用程序的平台之间有什么区别?

If your devices are on the same network, from the command prompt try ipconfig get the IP Address from your wireless and from your device try http://[IP Address]:[Port] . 如果您的设备在同一网络上,请从命令提示符处尝试ipconfig从无线设备获取IP地址,并从设备中尝试http://[IP Address]:[Port]

Like in this example: 像这个例子:

在此处输入图片说明

http://192.168.2.122:5252

I am not an expert on Mac but if I recall correctly your issue may be associated with this: 我不是Mac方面的专家,但如果我没记错,您的问题可能与此有关:

http://www.wikihow.com/Add-a-Mac-to-a-Homegroup http://www.wikihow.com/Add-a-Mac-to-a-Homegroup

What is the difference between the platforms that is disallowing me from viewing my ASP.NET application on non-Windows machines? 不允许我在非Windows计算机上查看我的ASP.NET应用程序的平台之间有什么区别?

The network to which they are connected. 它们连接到的网络。 You seem to have mentioned that your Windows machine is connected to the same local network as the computer hosting the web application. 您似乎已经提到Windows计算机与托管Web应用程序的计算机连接到相同的本地网络。 But the other devices probably aren't. 但是其他设备可能不是。 So make sure that those devices are connected to the same network. 因此,请确保这些设备连接到同一网络。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM