« Taking Parents for Granted | Main | AAPT is a rip off »

February 02, 2009

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e008cf905a8834010537006008970b

Listed below are links to weblogs that reference Open a range of ports on Windows Firewall:

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

Jiggie

Hey,
I'm having trouble with your command prompt solution and this is whats happening:
I copy your solution:
FOR /L %I IN (6881,1,6999) DO netsh firewall add portopening TCP %I "Passive FTP"%I
I paste it in to command prompt and I see it working on each individual port but it says:
"netsh is not recognized as an internal or external command, operable program or batch file."

and doesn't open them and when I go to my firewall exceptions they are not their so please help me and I'm not particularly great with technology so please bear with me
Thanks a lot

David Eedle

Hi Jiggie

NETSH is the program that's doing the actual opening of the ports. By the sound of things it's not in the default system directory. I would check:

C:\WINDOWS;
C:\WINDOWS\system32

And see if you can find it (maybe just search whole machine).

If you locate it, then reference it directly with the path to the program file, for example:

FOR /L %I IN (6881,1,6999) DO C:\WINDOWS\netsh firewall add portopening TCP %I "Passive FTP"%I

Kind regards...David

jang

Very useful thank you for posting this!

Justin

Super helpful, thanks!

John

big help, thank you!

Bart Duncan

To open a range of ports you don't need to add one rule per port - you can do it with just one rule. E.g. this will open 64000-64005 TCP inbound:

netsh advfirewall firewall add rule name="My Port Range Rule" dir=in protocol=tcp localport=64000-64005 action=allow

Daniel

This was very useful and saved me alot of work, thanks alot :)

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

My Photo

Links

About David and More

  • David Eedle Bio
    Always hard writing about yourself. Here goes.
  • Click to Start
    Click to Start was a column I wrote for a while on artshub.com.au a few years ago.
  • Fragile Technology
    Fragile Technology was an idea of mine a year or two ago, mostly around a book proposal I worked up one holidays. I've now started a blog around the Fragile Technology concept.
  • David's Glossary of Theatre Terms
    The Glossary was published in 1992, and promptly went out of print!
  • Contact David
    Contact by email, phone, fax and Skype.
  • Niche Content Millionaire
    Our eBook about how we built a successful online global subscription content business.

Twitter Updates

    follow me on Twitter