Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

port 8080 is already in use and no process using 8080 has been listed

I am trying to start Tomcat from Eclipse, but a problem occured:

Port 8080 required by Tomcat v6.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

I tried to list processes connected to this port using command on Windows:

netstat -aon 

But on the listing there is no process with PID = 8080. I also tried:

netstat -aon | find "8080" 

But it also didn't find anything. Can anyone help me?

like image 510
Kinga Garczyńska Avatar asked Nov 13 '13 22:11

Kinga Garczyńska


People also ask

How do I resolve a port already in use?

If you are running the Development Application Server, changing the port used by the server is the easiest solution. Change the Server Port in the Application Server Control Panel and start the server. Specify a port that is not 80, such as 8080. Changing the port number may not desired in a Production environment.


1 Answers

PID is the process ID - not the port number. You need to look for an entry with ":8080" at the end of the address/port part (the second column). Then you can look at the PID and use Task Manager to work out which process is involved... or run netstat -abn which will show the process names (but must be run under an administrator account).

Having said that, I would expect the find "8080" to find it...

Another thing to do is just visit http://localhost:8080 - on that port, chances are it's a web server of some description.

like image 190
Jon Skeet Avatar answered Sep 21 '22 06:09

Jon Skeet