Port reference › Web
Port 8080 · HTTP alternate
Tomcat, proxies, dev servers
TCP Web Exposure risk: Medium
What is port 8080 used for?
A common alternative to port 80. Default for Apache Tomcat, Jenkins, many Spring Boot examples and proxy servers. Popular because ports below 1024 need root.
Registered port (1024-49151): the range used by ordinary applications.
Security notes
Admin consoles (Tomcat Manager, Jenkins) left open without auth are a frequent incident. If it must be public, put it behind a reverse proxy on 80/443.
Allow port 8080 through the firewall
This port is risky to expose, so the commands below allow only the IPs you specify.
# Replace 203.0.113.10/32 with the IP or network you want to allow
sudo ufw allow from 203.0.113.10/32 to any port 8080 proto tcp
sudo ufw status # Replace 203.0.113.10/32 with the IP or network you want to allow
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="203.0.113.10/32" port port="8080" protocol="tcp" accept'
sudo firewall-cmd --reload # Replace 203.0.113.10/32 with the IP or network you want to allow
sudo iptables -A INPUT -p tcp -s 203.0.113.10/32 --dport 8080 -j ACCEPT # Replace 203.0.113.10/32 with the IP or network you want to allow
New-NetFirewallRule -DisplayName "Allow TCP 8080" -Direction Inbound -Protocol TCP -LocalPort 8080 -RemoteAddress 203.0.113.10/32 -Action Allow # Replace sg-0123456789abcdef0 with your security group ID
aws ec2 authorize-security-group-ingress --group-id sg-0123456789abcdef0 --protocol tcp --port 8080 --cidr 203.0.113.10/32 Check whether port 8080 is open
sudo ss -tlpn | grep ':8080 ' netstat -ano | findstr :8080 nc -zv SERVER 8080
# Windows
Test-NetConnection SERVER -Port 8080 sudo lsof -i :8080 Ports used together
- 80 HTTP · Unencrypted web
- 8443 HTTPS alternate · Admin consoles, Tomcat HTTPS
- 8000 Dev server · Django, Python http.server