Windows 7 Open Firewall Ports To IIS7
In the saga of trying to figure out where this phantom page is coming from I decided to host the site on my local machine and see if it was ASP.NET MVC 2 itself or my host. If you are reading this I assume you already know how to use IIS and create a web application. The issue i was having is that I needed the external service Web-Sniffer to get my site as a GoogleBot. So you will need the following to open up your site. A word of caution, this opens a port on your machine and could potentially be a security hole if left open.
What You’ll Need To Start
- Your Router IPN
- Your Internal IP Address
- Your External IP Address
- Your Web Application Port Number
Forwarding Some Ports
First log into your router using the IPN address. It is usually something like 192.168.1.1. Log in and forward the Web Application Port to Your Internal IP Address. This depends on your router so consult your manual about the specifics.
Opening Some Ports
Although your ports are now forwarded to your machine, all traffic will be blocked by the Windows Firewall. This next step will open those ports.
1.) Open up Control Panel and click System and Security
2.) Next Click Windows Firewall
3.) Next click Advanced Settings on the left.
4.) In the new window click Inbound Rules, Then Click “New Rule…” on the right
5.) Then in the new window select Port and click Next
6.) Proceed to type in your Web Application Port Number in the textbox
7.) And then just keep clicking next until you are done.
Now To See The Site
Open up your favorite web browser and type your External IP Address followed by the Web Application Port. ex. 99.99.999.99:8080. You should see your site come up. If your site doesn’t come up make sure that you are forwarding ports and that your IIS web application is running. You can also enable and disable the rules in the Windows Firewall Advanced Security panel. Good Luck.
