Using IIS Express to host a website (temporarily)

TDaver picture TDaver · Mar 8, 2011 · Viewed 67.2k times · Source

I have a website (MVC3), which for developement is hosted in IIS Express. (I've run into a bug of Cassini Devserver and had to upgrade...) Now, I'm wondering, is it possible to let other machines on my local net (behind router) see the site as hosted on my machine? (e.g. If I write http://my.local.ip:port into a browser on the same LAN as I am will the page load?)

Answer

vikomall picture vikomall · Mar 9, 2011

By default IIS Express serves only localhost requests. To serve external requests edit applicationhost.config file (located in %userprofile%\documents\iisexpress\config\) and change localhost to '*' or your machine name. (remember for non-localhost binding you must be running as administrator or set URL acl as an administrator and then run iisexpress as non-administrator)