Web & Dev
Risk: Medium
Port 80 β HTTP (Hypertext Transfer Protocol)
Port 80 is the global IANA standard port for unencrypted World Wide Web (HTTP) traffic. All web browsers default to port 80 when http:// is specified.
PORT NUMBER
80
PROTOCOL
TCP
DEFAULT PROCESS
nginx, apache2, httpd, caddy
FIREWALL TARGET
80/tcp
Instant Terminal Fixes for Port 80
macOS & Linux Terminal
1. Check who is listening on port 80:
sudo ss -tulpn | grep :802. Kill process occupying port 80 (EADDRINUSE fix):
sudo kill -9 $(sudo lsof -t -i:80)3. UFW Firewall Allow rule:
sudo ufw allow 80/tcpWindows PowerShell (Admin)
1. Check listening port:
Get-NetTCPConnection -LocalPort 802. Force kill process on port 80:
Stop-Process -Id (Get-NetTCPConnection -LocalPort 80).OwningProcess -Force3. Docker Port Forwarding Mapping:
docker run -p 80:80 -d nginx:alpineCommon Error Encountered
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
Security Advisory & Hardening
Traffic is completely unencrypted. Modern security standards mandate redirecting all incoming Port 80 requests to Port 443 (HTTPS) with HSTS headers.
Frequently Asked Questions
Port 80 Questions & Answers
Common questions regarding default services, kill commands, and firewall configurations.
Port 80 is commonly used for HTTP (Hypertext Transfer Protocol). Port 80 is the global IANA standard port for unencrypted World Wide Web (HTTP) traffic. All web browsers default to port 80 when http:// is specified.