Advertisements
You have to run the following command from the command prompt.
To open TCP ports 7000 to 7777 naming each rule as 7000-7777-tcp-Port_num, run the following command
FOR /L %I IN (7000,1,7777) DO netsh firewall add portopening TCP %I "7000-7777-tcp"%I
To open UDP ports 7000 to 7777 naming each rule as 7000-7777-udp-Port_num, run the following command
FOR /L %I IN (7000,1,7777) DO netsh firewall add portopening UDP %I "7000-7777-udp"%I
No comments:
Post a Comment
Be nice. That's all.