Port 8080 is the most common alternate HTTP port. Tomcat, Jenkins, Spring Boot and many containerised apps listen on it, often behind a reverse proxy on 80 or 443. It should not be reachable from the public internet.
- Port
- 8080
- Protocol
- TCP
- Service
- HTTP alternate
- Expose to internet?
- No
- Also used by
- Apache Tomcat, Jenkins, Traefik dashboard, proxies, Spring Boot, many container images
Is port 8080 safe to open?
Services on 8080 are often internal backends or admin tools that were never meant to be public: Jenkins, the Tomcat manager or a proxy dashboard. Exposed without TLS or authentication, they can give attackers code execution (Jenkins script console, Tomcat WAR upload).
How to secure HTTP alternate
- Put the service behind a reverse proxy on 443 and bind it to localhost.
- Require authentication on Jenkins and remove or restrict the Tomcat manager app.
- If Docker publishes it, use
-p 127.0.0.1:8080:8080so it is not exposed on every interface.
Check if port 8080 is open
Linux: what is listening on this port
sudo ss -tlpn | grep ':8080 'Windows (PowerShell): what is listening
Get-NetTCPConnection -LocalPort 8080 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}From another machine: is it reachable
nc -zv HOST 8080
# or
nmap -p 8080 HOST
# Windows
Test-NetConnection HOST -Port 8080Test the HTTP alternate service itself
curl -sI http://HOST:8080/Restrict port 8080 in the firewall
Replace 10.0.0.0/8 with the network or address that needs access. Docker publishes container ports through its own iptables rules, which bypass ufw; bind published ports to 127.0.0.1 (-p 127.0.0.1:8080:8080) instead of relying on the host firewall.
ufw: allow only your private network, deny everyone else
sudo ufw allow from 10.0.0.0/8 to any port 8080 proto tcp
sudo ufw deny 8080/tcpfirewalld: allow one source network only
sudo firewall-cmd --permanent --remove-port=8080/tcp
sudo firewall-cmd --permanent --add-rich-rule='rule family="ipv4" source address="10.0.0.0/8" port port="8080" protocol="tcp" accept'
sudo firewall-cmd --reloadiptables
sudo iptables -A INPUT -p tcp --dport 8080 -s 10.0.0.0/8 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 8080 -j DROPWindows Firewall (PowerShell, as Administrator)
New-NetFirewallRule -DisplayName "Block 8080 from internet" -Direction Inbound -Protocol TCP -LocalPort 8080 -RemoteAddress Internet -Action BlockMonitor port 8080
Run a TCP port monitor against your public IP on port 8080: here, a failed connection is the healthy result, so you know the firewall is still doing its job. On Linux, the Statance agent also reports every listening port on the server. TCP port monitoring.
Related ports
| Port 80 | HTTP | Low risk |
| Port 8443 | HTTPS alternate | Medium risk |
| Port 8000 | HTTP alternate / development servers | Medium risk |
FAQ
What is port 8080 used for?
It is an alternate HTTP port, commonly used by Tomcat, Jenkins, Java and Node.js apps, proxies and containers. It is often used because ports below 1024 need root on Linux.
Is port 8080 the same as port 80?
Both carry HTTP, but 80 is the default that browsers use without a port in the URL. A site on 8080 must be visited as http://host:8080/.
Is it safe to open port 8080?
Not to the public internet. Services on 8080 are often internal backends or admin tools that were never meant to be public: Jenkins, the Tomcat manager or a proxy dashboard. Exposed without TLS or authentication, they can give attackers code execution (Jenkins script console, Tomcat WAR upload).
Is port 8080 TCP or UDP?
HTTP alternate uses TCP on port 8080.
How do I check if port 8080 is open?
On the server, run sudo ss -tulpn | grep ':8080 ' (Linux) or Get-NetTCPConnection -LocalPort 8080 (Windows) to see what is listening. From another machine, run nc -zv HOST 8080 or Test-NetConnection HOST -Port 8080.
Know the moment a port stops answering.
TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.