Saturday 7 September 2013

Running IIS Express Remotely

IIS express usually runs under local host. To allow this to be seen by external computers you need to add binding information to the applicationhost.config file in
C:\Program Files (x86)\IIS Express\config

 
               
                   
               

               
                   
               

           


Important parts of this are the application pool, the name and the ID.  The application pool has to be the same for all the sites running in IIS8 express.

The name has to be unique and the ID has to be incremented.

Allow incoming connections.

Open command prompt and add rule

> netsh http add urlacl url=http://192.168.1.27:90/ user=everyone

In command prompt add a firewall rule

netsh advfirewall firewall add rule name="IISExpressWeb" dir=in protocol=tcp localport=90 profile=private remoteip=localsubnet action=allow

If running windows authentication alter the to deny anonymous authentication and allow Windows.

Running multiple sites.
Start iisexpress from the command prompt


"C:\Program Files (x86)\IIS Express\iisexpress.exe" /apppool:Clr4IntegratedAppPool