Search code examples
asp.netiisasp.net-web-apiiis-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. 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?


Solution

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

    enter image description here

    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