Sign in with
Sign up | Sign in
Your question

Opening Multiple Ports on Windows Firewall

Last response: in Networking
Share
October 14, 2008 6:59:46 PM

I an running vista business 64-bit and just using the windows firewall. I would like to open up a range of ports in that firewall. For those that are familiar with the WoW updates downloader, it is sensitive to firewalls and security measuers in general. Blizzard recommends keeping TCP ports 3724 and 6112 open. they also recommend leaving ports 6881-6999 open. I have the first two ports open, but how do I make a range of ports open without entering all 100+ of them individually?

Reason I am doing this is I just can't seem to get the downloader to function properly without just totally leaving my firewall off. I'm thinking/hoping opening every port blizzard suggests will solve my issue.
October 18, 2008 8:09:40 PM

I was running into the same problem. It seems as though Windows Firewall will not allow you to specify a large range, such as 6881-6999, however, there is an easier solution than creating an exception for each port.

If you go into the "Windows Firewall with Advanced Security" Panel, you can select "Inbound Rules"; "New Rule" (located on the right side of interface); Under rule type select the radio for "Port" and hit next; Select the radio for "Specific Local Ports". This is where I opened up notepad and started typing the range out separating each port with a comma. When that is done, copy and paste the ports into the list for "Specific Local Ports" and hit next. This is the easiest way I have found. Easier than that would be to go into something like Excel for spreadsheet, and have it list all the ports separated by commas given the range 6881-6999. If you are savvy enough to do that anyway. I'm not sure of the semantics involved, as I had already typed all of them out before realizing there was an easier way.

Hope this helps, take care, and happy hunting %n. Long Live The Alliance!
Anonymous
a b Ý World of Warcraft
April 15, 2009 11:53:25 AM

But where is Windows Firewall with Advanced Security?
Related resources
July 6, 2009 4:43:26 PM

Control Panel>System and Security>Windows Firewall>Advanced Settings[under left Control Panel Home]>Inbound Rules[under left panel]>New Rule[under right panel]>[select] Port>Next>Specific Local Ports

From here you can separate specific ports with commas as your first reply had noted, but there is no need to type in each separate one. If you notice in the examples of port numbers (Example: 80, 443, 5000-5010) under the selection box it shows that you can specify a range of ports using "-" located on your number/signs pad. Then select allow for all, though I doubt public networks needs to be allowed for these ports. Name your rule and presto, youre done!

July 28, 2009 8:25:35 AM

Save this as a .html file. Open it in a browser with javascript enabled. Crtl+A to select all. Paste it into the box and delete the last comma.

<html>
<head></head>
<body>
<script lang="JavaScript">
var fullStr = "";
var i;
for(i=6881;i<=6999;++i)
fullStr = fullStr + i + ",";
document.write(fullStr);
</script>
</body>
</html>
Anonymous
a b Ý World of Warcraft
November 27, 2009 8:04:00 AM

1. Open the Control Panel folder, and find the 'Windows Firewall' applet
2. Click the 'Change Setting' link
3. Click the Exceptions tab.
4. Press the 'Add port...' button.
5. In the Name field, type a friendly name for the port to help you remember why you opened it. For example, type "Remote Desktop: Port 8999".
6. In the 'Port number' field, enter the port number you want to open. For example, type "8999"
7. In the Protocol field, select either TCP or UDP, and press the OK button.
December 12, 2009 11:02:40 AM

You can open multiple ports from the command prompt using the following scripts.

To open the ports use:

FOR /L %I IN (6881,1,6999) DO netsh firewall add portopening TCP %I "World of Warcraft downloader"%I

To close the ports use:

FOR /L %I IN (6881,1,6999) DO netsh firewall delete portopening TCP %I


This example is for the WoW range, and opens ports 6881-6999 and gives it the name World of Warcraft downloader. The middle number in brackets just states the increments you go up in. In this case every one, but if you wanted you could make this every 2 or 10 or anything if you feel the need ;) 
May 6, 2010 6:51:39 PM

Many thanks, joeyk. This post is really helpful.

Jules
May 8, 2010 5:33:21 AM

you dont need to have those ports open for the blizzard downloader. Also, the blizzard downloader should be perfectly capable of adding its own exception to windows firewall.
September 9, 2010 9:14:31 PM

Now that's cool, joeyk! Thanks!
October 17, 2011 7:37:47 PM

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 "World of Warcraft downloader"%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
!