localhost:8080: what runs on it and how to open it
Port 8080 is the alternate web port for Tomcat, Jenkins, Spring Boot and Docker. How to open it and fix conflicts.
Open this address: http://localhost:8080This opens on your own computer. It only works if the program is running.
localhost:8080 is the usual alternative web port. Tomcat, Jenkins, Spring Boot and many Docker containers use it, so conflicts are common.
What runs on localhost:8080
- Spring Boot and Tomcat (default 8080)
- Jenkins
- A second Apache or nginx site when port 80 is taken
- Docker containers started with
-p 8080:80
Commands to start and test port 8080
docker run -p 8080:80 nginx./mvnw spring-boot:runserver.port=8081Find what is using port 8080
Run these in a terminal on your computer. Nothing is sent to this site.
If localhost:8080 will not open
- Web server failed to start. Port 8080 was already in use
- Another program has 8080. Stop it using the tool below, or set
server.port=8081. - Docker: bind: address already in use
- Change the left number:
-p 8081:80opens http://localhost:8081. - Jenkins asks for an unlock password
- Read it from the file path Jenkins prints in its log, usually initialAdminPassword.
Other ports like 8080
| Port | Usually used by |
|---|---|
| localhost:3000 | React, Next.js, Express |
| localhost:5173 | Vite dev server |
| localhost:4200 | Angular dev server |
| localhost:5000 | Flask |
| localhost:8000 | Django, PHP, Python |
| localhost:8888 | Jupyter Notebook |
| localhost:9000 | PHP-FPM, SonarQube |
Questions about localhost:8080
- What is localhost:8080?
- An alternative web port used by Tomcat, Jenkins, Spring Boot and Docker containers, and by a second web server when port 80 is taken.
- How do I change the port from 8080?
- In Spring Boot set server.port=8081. In Docker change the left number in -p 8081:80.
- Is localhost:8080 safe?
- Yes, as long as it stays on localhost. Only your own computer can reach localhost:8080. It becomes reachable from other devices only if you start the program on 0.0.0.0 or your computer's IP address. Development servers are for testing, so do not put them on the public internet.
- Can I use a different port instead of 8080?
- Yes. Most programs let you choose the port with a setting or a command option. Pick a free port above 1024 and open that number instead, for example localhost:8081.
- How do I check what is using port 8080?
- Use the port checker on this page. It shows the command for Windows, macOS and Linux and does not send anything to this site.
- Can I open localhost:8080 from my phone?
- Yes, if both are on the same Wi-Fi. Start the program so it listens on all addresses, then open your computer's IP address with :8080 on the phone. A firewall on the computer can still block it.
Free tools that help
- Common ports listSearch a list of common TCP and UDP port numbers: SSH 22, HTTP 80, HTTPS 443, MySQL 3306, PostgreSQL 5432 and more, with dev server ports.