You are here:
< Back

Open TCP port in the firewall of your devices

A) create a firewall rule to open port 80 for ingoing connection : netsh advfirewall firewall add rule name=”My new rule” dir=in action=allow protocol=TCP localport=80

B) create a firewall rule to open port 80 for outgoing connection : netsh advfirewall firewall add rule name=”My new rule” dir=out action=allow protocol=TCP localport=80

Close TCP port in the firewall of your devices

A) create a firewall rule to close port 80 for ingoing connection : netsh advfirewall firewall add rule name=”My new rule” dir=in action=block protocol=TCP localport=80

B) Create a firewall rule to close port 80 for outgoing connection : netsh advfirewall firewall add rule name=”My new rule” dir=out action=block protocol=TCP localport=80

Note : To delete a rule, use the following command : netsh advfirewall firewall delete rule name=”My new rule”

Categories: