netsh advfirewall open TCP ports 80 and 443 for outgoing traffic
9,413
Get IP Address for services.visualstudio.com
C:\test>nslookup services.visualstudio.com
Server: dns.tb.iss.as9143.net
Address: 212.54.40.25
Name: services.visualstudio.com
Open the ports
netsh advfirewall firewall add rule name="Open port 80" protocol=TCP localport=80 action=allow dir=OUT remoteip=212.54.40.25
netsh advfirewall firewall add rule name="Open port 443" protocol=TCP localport=443 action=allow dir=OUT remoteip=212.54.40.25
Further reading
- An A-Z Index of the Windows CMD command line - An excellent reference for all things Windows cmd line related.
- netsh - Configure Network Interfaces, Windows Firewall, Routing & remote access.
- How to use "netsh advfirewall firewall" to control Windows Firewall behavior
Related videos on Youtube
Author by
Rama
Updated on September 18, 2022Comments
-
Rama over 1 year
I need to do the following with netsh advfirewall commands:
Open TCP ports 80 and 443 for outgoing traffic to dc.services.visualstudio.com and f5.services.visualstudio.com.
How can I do this?
-
Rama over 9 yearsDownvoting me instead of giving answers, real nice you guys :(
-
DavidPostill over 9 years
-
DavidPostill over 9 years
netsh advfirewall firewall add rule ?
-
Rama over 9 yearsI know I should use add rule, I just don't know what the rule should be
-