Configure IISExpress for Remote Access

Have you ever been working on a project in Visual Studio and wanted to have someone else test-drive it? Short of having them sit at your desk there wasn’t much option as the default Visual Studio web server doesn’t accept remote request. IISExpress to the rescue, but its not a simple as you’d think.

There are three simple steps to remote access on a local project.

  1. Go into Visual Studio and tell the project to run under IISExpress. You can right-click on the web project and select “Use IISEXpress”:

Optionally, you can also choose Properties->Web->Use Local IIS Web Server

  1. Grant the remove access ACL to your machine and port:

    netsh http add urlacl url=http://mymachinename:50333/ user=everyone

Remember to change your machine and port number!

  1. Ensure that the binding protocol for that port/machine are listed in you’re applicationhost.config
  2. Open applicationhost.config file located in your user profile (%userprofile%\Documents\IISExpress\config\applicationhost.config)
  3. Locate your WebSite entry and add following binding with your machine name:
  1. Restart IIS Express

And that’s it. Works like a charm!

Big thanks to Scott Guthrie and these two StackOverflow posts (http://stackoverflow.com/questions/3313616/iis-express-enable-external-request, http://stackoverflow.com/questions/5442551/iisexpress-returns-a-503-error-from-remote-machines)

jonmholt

Jon Holt

A coach, an entrepreneur, and a no-bull advisor in growing small businesses through the use of practical strategy, light-weight governance and sitting back and thinking about running your business, regardless of what you do.

Read More