Run multiple sites from one IP in IIS

asp.net, iis-7, windows-firewall, windows-server-2008

Solution

host headers are your friend

This link might help you.

http://technet.microsoft.com/en-us/library/cc753195(v=ws.10).aspx

You basically are going to run your sites on different ports and the tell IIS that http:// url1 maps to the site on port 80 and http:// url2 maps to port 81

Problem

I have a box with Windows Server 2008 and IIS 7, and I'm using an ASP.NET app. I am trying to run multiple sites from one IP, but I can't access the sites from the outside. I can only access the Default website from outside but when I want to access the second one it does not work. The second one should run on the `http://ip:81` and the default one is on 80. They both run fine locally on the box and I have added a rule on the firewall to allow all inbound.

Original source