10

Tomcat won't start, and it has worked perfectly before. I suspect something else is running on port 8080. I am running Windows Vista. How do I check that nothing else is using port 8080?

I have recently downloaded several versions of Jetty. Could this be the problem? I am not running them concurrently so I can't see how.

Michael Freidgeim
  • 187
  • 1
  • 1
  • 10
Ankur
  • 2,369
  • 7
  • 22
  • 24
  • 5
    Does this answer your question? [How do I see if a port is in use on a windows machine?](https://serverfault.com/questions/2699/how-do-i-see-if-a-port-is-in-use-on-a-windows-machine) – Michael Freidgeim Mar 18 '21 at 02:29

7 Answers7

18

Open up a command prompt and run

netstat -ano | findstr 8080

Rightmost column is PID

In task manager you can add column for PID then find the app that is using the port.

Jim Ford
  • 105
  • 6
dexedrine
  • 396
  • 1
  • 4
1

I think you can run cmd as administrator and use netstat command to see if port 8080 is being used. Use netstat /? for help with netstat command. I do not know any GUI based approach for the same.

Saurabh Barjatiya
  • 4,643
  • 2
  • 29
  • 34
1

In addition to netstat you can also use Process Hacker or ActivePorts to view open ports in real-time (ok, specific refresh intervals...)

squillman
  • 37,618
  • 10
  • 90
  • 145
0

Try this command:

netstat -aon | findstr "8080"

This command will give process ID's. Then go to task manager and stop the process with this process id and then restart tomcat.

Mark Henderson
  • 68,316
  • 31
  • 175
  • 255
0

This can be done easily using the netstat utility.

Jan Jungnickel
  • 964
  • 6
  • 9
0

use NETSTAT in a command prompt.

Wikipedia also lists the parameters.

Sander Versluys
  • 881
  • 1
  • 10
  • 12
-1
telnet localhost 8080

If you can connect, then something's listening on the port.

theotherreceive
  • 8,235
  • 1
  • 30
  • 44