How NOT to enable remote access with ‘IIS Express’

So you have your web application built in Visual Studio on Windows 10.  You run your application locally and it works.  Now you want to ship it to your client to test – remotely.  It doesn’t work because IIS Express would not allow remote access.

You then googled how to solve it.  You found this accepted answer on stackoverflow.com.  It says to do the following:

  • Edit your applicationhost.config and set

<binding protocol="http" bindingInformation="*:58938:192.168.1.42" />

  • netsh http add urlacl url=http://192.168.1.42:58938/ user=everyone
  • netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=58938 profile=private remoteip=localsubnet action=allow

Let me tell you – this approach did NOT work for me.  This is what works for me:

  1. Make sure you have Node.js installed.
  2. Download and install iisexpress-proxy via Node.  Installation instructions are on the page.

There you have it.  Enjoy showing your web application to the world.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.