Allow Ports on Windows Firewall
Using CMD (Command Prompt / PowerShell)
netsh advfirewall firewall add rule name="Allow Port XYZ" dir=in action=allow protocol=TCP localport=PORT_NUMBER
# To allow port 8080 for TCP:
netsh advfirewall firewall add rule name="Allow TCP 8080" dir=in action=allow protocol=TCP localport=8080
# To allow port 53 for UDP:
netsh advfirewall firewall add rule name="Allow UDP 53" dir=in action=allow protocol=UDP localport=53
# To delete the rule:
netsh advfirewall firewall delete rule name="Allow TCP 8080"Using GUI (Graphical User Interface)
Last updated