Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a .NET program to make an HTTP request over the Internet, and it's being blocked by my PC's firewall. The operating system being used is Windows 7. I figured I could create an outbound rule to allow connections on port 80 using TCP to be made. I also made the same rule for Inbound connections. Unfortunately, the program still throws an error. When I allow all outbound connections to be made, my program does not throw any errors. Is there some firewall rule which is not program specific that I can add which will allow the type of connection being made by my program? I was thinking of a firewall rule for a specific port and protocol, but I don't know how to configure such a rule...

share|improve this question

When you edit the firewall rule, make sure you go to the "advanced options" tab and select all scopes "private + public + domain". This one can be sometimes skipped.

From your post I see you only need an "outgoing" firewall rule. Review if you have any deny/blocking rules that can affect you.

share|improve this answer
Thanks for the response, these are great things to check that I didn't consider. Turns out I was just specifying the wrong port number... – Andrew Dec 22 '12 at 19:46
up vote 0 down vote accepted

It turns out I was just using the wrong port. I was specifying port 80, since my program is requesting information via HTTP. However, the port number being used seems to be somewhere between 10,000 and 60,000 (haven't narrowed it down yet). I should probably start using some tool to monitor network traffic on my PC...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.