You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

How can I open a port on a Operating System Firewall ?

Step-by-step guide

Windows:

  1. Click on Start then on Control Panel
  2. Click on Windows Firewall and then click on Advanced Settings.
  3. Right click on Inbound Rules then on New Rule:
  4. Select Port and click on Next: 
  5. Enter a specific local port (e.g. 8080) and click on Next: 
  6. Click on Next: 
  7. Name the rule and click on Finish:

Linux:

These commands to open port 8080 need to be executed as root or sudo su:


#open port in firewall

firewall-cmd --zone=public --add-port=8080/tcp --permanent

firewall-cmd --reload

#check if the firewall port

iptables-save | grep 8080






  • No labels