Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Ok, call me lazy. This works in WINDOWS XP:

netsh firewall add portopening protocol=TCP port=5900 name="VNC"

What's the equivalent in Windows 7 ?

The documentation is as clear an encrypted man page. Thought I'll get some quick answers here ... Thanks in advance.

share|improve this question

closed as off topic by EEAA, Khaled, MDMarra, Dave M, Chris S Apr 12 '12 at 12:38

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Ok, have it your way. You're lazy. Have a -1 for asking a question that you put zero effort into solving yourself. – MDMarra Apr 12 '12 at 12:31
up vote 1 down vote accepted

I <3 Stackexchage, I just found the answer, leaving it for future reference:

netsh advfirewall firewall add rule name=”Rule” dir=in action=allow enable=yes remoteip= profile=private protocol=TCP localport=80

or for my case:

netsh advfirewall firewall add rule name="vnc" dir=in action=allow enable=yes  profile=private protocol=TCP localport=5900
share|improve this answer

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