Port 80: HTTP

Port 80 (TCP) is used by HTTP. Unencrypted web traffic. Most sites only use it to redirect visitors to HTTPS on 443.

80Port
TCPProtocol
httpIANA service name
WebCategory

Port range

80 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

Web ports are meant to be public, but keep the server patched, serve HTTPS, and do not expose admin panels on the same port without authentication.

Open port 80 in a firewall

ufw         sudo ufw allow 80/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=80/tcp
Windows     New-NetFirewallRule -DisplayName "HTTP 80" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow

Check if port 80 is open

nc -vz example.com 80
Test-NetConnection example.com -Port 80   # PowerShell
sudo ss -tulpn | grep ':80 '   # what is listening locally (Linux)

Other web ports

Frequently asked questions

What is port 80 used for?
HTTP. Unencrypted web traffic. Most sites only use it to redirect visitors to HTTPS on 443.
Is port 80 TCP or UDP?
TCP.