Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 professional 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.

4  
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
add comment

1 Answer

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=172.16.1.1 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
add comment

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