Thursday, January 14, 2016

Fedora 21 Web Server for other connected devices

Although localhost, "127.0.0.1", can access on the local machine. Other connected devices will not be able to access to localhost web server.

The thing to lookout for is, FIREWALL~!


  1. Terminal# firewall-cmd --zone=public --add-port=80/tcp --permanent
    • Adding port 80 to public zone permanently~
  2. Terminal# firewall-cmd --reload
    • Reload the firewalld.service for rule to take effect
  3. Terminal# iptables-save|grep 80
    • Shows "-A IN_FedoraWorkstation_allow -p tcp -m tcp --dport 80 -m conntrack --ctstateNEW -j ACCEPT"
  4. Terminal# iptables -L|grep http
    • Shows "tcp -- anywhere tcp dpt:http ctstate NEW"

No comments:

Post a Comment