简体   繁体   中英

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. I followed the instructions here on setting up IIS Express to allow remote connections. 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. However, I am unable to view the application from any other platform (Android, iOS, and OS X - tested in both Chrome and 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.

What is the difference between the platforms that is disallowing me from viewing my ASP.NET application on non-Windows machines?

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] .

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:

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?

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. But the other devices probably aren't. So make sure that those devices are connected to the same network.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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