localhost:8080
The address of a web server running on your own computer, on port 8080. Tomcat, Spring Boot, Jenkins and many dev servers use it by default.
Updated November 2026 · 4 min read
-
Written by
Andrian Valeanu
Founder of Pulsetic
-
Reviewed by
Ionut Caval
Technical reviewer
The short version: http://localhost:8080 opens whatever program on your computer is listening on port 8080. If it will not load, that program is not running. If it shows something you did not expect, another program got the port first: 8080 is popular, so conflicts are common. Check which process holds the port, then stop it or move one of the two.
- Used by
- Tomcat, Spring Boot, Jenkins, webpack dev server, Vue CLI, Airflow
- Full address
http://localhost:8080- Registered as
- http-alt, the alternative HTTP port
- Most common problem
- Two programs that both want 8080
What is localhost:8080?
localhost is your own computer, and :8080 picks one program on it. A request to this address stays on your machine: it is not a page on the internet.
The standard port for HTTP is 80. On Linux and macOS, a program needs administrator rights to open any port below 1024, so developers picked a lookalike above that line. 8080 stuck, and IANA lists it as http-alt, the alternative HTTP port.
Because so many tools chose the same number, port 8080 is the one most likely to be taken already. A Java server, a CI server and a front-end dev server on one laptop will all ask for it.
What runs on port 8080
These tools listen on port 8080 unless you tell them otherwise. The last column shows how to move each one to a different port.
| Program | How it starts | Change the port |
|---|---|---|
| Apache Tomcat | Runs as a service or catalina.sh run | The port of the HTTP Connector in conf/server.xml |
| Spring Boot | Embedded server, started with the app | server.port=8081 in application.properties |
| Jenkins | java -jar jenkins.war | java -jar jenkins.war --httpPort=8081 |
| webpack dev server | webpack serve | webpack serve --port 8081, or devServer.port |
| Vue CLI | npm run serve | npm run serve -- --port 8081. It moves to the next free port by itself |
| Apache Airflow | The web server component | The --port option of the web server command |
| Docker examples | docker run -p 8080:80 nginx | Change the left-hand number: -p 8081:80 |
Why localhost:8080 will not load
- Nothing is running. The browser shows "localhost refused to connect" (
ERR_CONNECTION_REFUSED). Tomcat or your app has not started, or it stopped. - Another program already has port 8080. Spring Boot says
Web server failed to start. Port 8080 was already in use.Tomcat logsAddress already in use: bind. - The wrong program answers. You expect your app and see a Jenkins login or a Tomcat welcome page. The other program started first and kept the port.
- The server is still starting. Java applications can take a while before they accept connections. The page fails for the first seconds, then works.
- It runs in a container. Without
-p 8080:8080the port is open inside the container but not on your computer. - Windows has reserved the port. Hyper-V and WSL can reserve port ranges. The server then fails with "An attempt was made to access a socket in a way forbidden by its access permissions".
Find what is using port 8080
One command shows whether a program is listening on the port, and which one. No output means nothing is listening, and that is exactly when the browser says the connection was refused.
On Linux, ss -ltnp | grep :8080 gives the same answer. Add sudo on macOS or Linux to see programs owned by another user. Stopping a process ends whatever it was doing, so check what it is before you stop it.
How to fix it
If the page will not load
- Check the application log or terminal. A Java stack trace on startup means the server never came up.
- Wait for the "started" line before you reload. Spring Boot prints
Tomcat started on port 8080. - Open
http://localhost:8080withhttp://. A server without a certificate cannot answerhttps://. - If the app runs in Docker, confirm the port mapping with
docker ps.
If the port is already in use
- Find the program holding the port with the commands in the section above.
- Stop it if you do not need it. A Tomcat or Jenkins installed as a service starts again on reboot, so stop the service, not only the process.
- Otherwise move one of the two to another port, such as 8081, using the table above.
- On Windows, list reserved ranges with
netsh interface ipv4 show excludedportrange protocol=tcp. If 8080 falls in one, pick a port outside it.
From localhost to production
In production, visitors reach the app on ports 80 and 443, and a web server or load balancer passes requests to the application on 8080 behind it. When the application stops while the web server keeps running, visitors get a 502 Bad Gateway: the same "nothing is listening on 8080" you see on your laptop, with an audience.
To test a deployed address by hand, the free bulk URL status checker shows the status code and redirects for a list of URLs, and Is Website Down checks one from several countries. Neither can see localhost: like any service on the internet, they only reach public addresses.
Deployed it? Watch the public URL.
Pulsetic is website uptime monitoring. It cannot reach localhost, but once your app is live it checks the public URL from outside your network, confirms any failure from another region, then emails you.
10 monitors free, checked every 5 minutes, with email alerts on failure and recovery. No credit card.
Sources and further reading
The documentation and specifications this guide is written from.
Frequently asked questions
-
What is localhost:8080 used for?
It is the usual address for a web server or application running on your own computer when port 80 is not available. Tomcat, Spring Boot, Jenkins and many development servers use it by default.
-
What is the difference between port 80 and port 8080?
Port 80 is the standard HTTP port: browsers use it when you type an address with no port. Port 8080 is an alternative that a program can open without administrator rights. With 8080, you have to type the port in the address.
-
How do I see what is using port 8080?
On macOS or Linux run
lsof -nP -iTCP:8080 -sTCP:LISTEN. On Windows runnetstat -ano | findstr :8080and look up the process ID in Task Manager. -
Can someone else open my localhost:8080?
No. localhost always means the computer the browser is running on. Other people on your network can reach your server only through your computer's network address, and only if the server listens on all interfaces and your firewall allows it.
-
Know when your live website stops answering.
2-minute setup · Cancel any time
-
No credit card needed