What Port 8080 Is
Port 8080 carries plain HTTP, the same protocol as port 80, on a different number, and it is the most common second web port. In a browser you reach it by adding the port to the address: http://example.com:8080.
What Usually Runs on It
- Java application servers: Apache Tomcat and Spring Boot applications listen on 8080 out of the box.
- Automation tools: Jenkins uses 8080 by default.
- Containers: many images publish their web service on 8080, and examples often map a container's port 80 to 8080 on the host.
- Proxies and caches: HTTP proxies and caching layers are often set up on 8080.
- Development servers and admin pages that should not take port 80 away from the main site.
Why a Program Can Listen on It Without Root
On Linux, ports below 1024 are privileged: only root, or a program given the matching capability, can listen on them. Port 8080 is above that line, so an application can run as an ordinary user and still serve HTTP. That is the main reason application servers use it: the program never needs root rights.
Find What Uses Port 8080
sudo ss -ltnp 'sport = :8080'
sudo lsof -i :8080Both show the process name and PID. The local address column tells you who can reach it: 127.0.0.1:8080 means only the server itself, while 0.0.0.0:8080 or *:8080 means every address. More on lsof in lsof command. To test the service from the server itself:
curl -I http://127.0.0.1:8080Address Already in Use
If a program fails to start with "address already in use" on 8080, another process already holds the port. Find it with the commands above, then either stop that service with sudo systemctl stop name or move one of the two programs to another port, such as 8081. Stop a process through its service manager first; do not reach for kill -9.
Put a Reverse Proxy in Front
Visitors expect ports 80 and 443, and HTTPS belongs on port 443. The usual setup keeps the application on 127.0.0.1:8080 and lets Nginx answer the public ports and pass requests on:
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}Test with sudo nginx -t before you reload Nginx. The full setup, including HTTPS, is in Nginx reverse proxy.
Do Not Expose Application Ports Directly
- Bind to localhost: configure the application to listen on 127.0.0.1 when a proxy sits in front of it.
- Keep the firewall closed: if port 8080 must be reachable, limit it to known addresses, for example
sudo ufw allow from 203.0.113.10 to any port 8080 proto tcp. - Watch Docker: a port published with
-p 8080:80is opened by Docker's own rules and is not filtered by ufw; see Docker port mapping. - Admin interfaces: reach them through an SSH tunnel instead of opening them to the internet.
8443 and Other Alternative Ports
Port 8443 is the HTTPS counterpart of 8080 and is used the same way by application servers and admin panels. Development tools also use 3000, 5000, 8000, and 8888. None of these numbers mean anything by themselves: always check what listens with ss. A full check of a server's open ports is in how to check open ports in Linux.
Updated:
Linux VPS with Full Root Access
MUVCloud cloud servers run on KVM with Enterprise NVMe SSD storage and full root access, in Turkey, the Netherlands, and the USA.
More Guides
No Limits on Service or Support
You are not on your own as your projects grow. Our support engineers are ready 24/7, on several channels, whenever you need them.

- 100% customer satisfaction goal
- Our own hardware
- 24/7 ticket and email support
- 4 countries with locations