IIS 7 hosted sites not accessible from remote machines
Recently while working on my Vista machine, I was was working on a ASP.NET Web site and I wanted to have a colleage of mine have a look. Like always, I mailed him the URL and waited for him to view it and get back. To my surprise, he reverted stating he can't view it.
The error he was getting was "Internet Explorer cannot display the webpage". This was surprising since I was able to view the site locally on the Vista machine without any issues. This meant that IIS was configured and running properly.
I tried to figure out the reason for this strange behavior since the IIS and world wide web services were all running properly on the machine. Turns out, it isn't really strange after all. It is one of those things done to make your machine more secure. To get this working, you need alter the default Firewall settings.
Run the Windows Firewall Settings Wizard (firewall.cpl) and in the Exceptions tab, scroll down and enable "World Wide Web services (HTTP)" option, as shown in the figure below. You will now be able to access the site properly. There is Support KB also on this, which I later found out.