Windows – Cannot work out what is using port 8080

tcpwindowswindows-server-2003

In Windows Server 2003 R2 64 Bit SP2 I have an app which will only use port 8080 but something is already using it. I would be happy to just kill whatever is using it but I can't work out what it is. I have run TCPView and it showed a PID of 3216 with a process of "". I have tried taskkill /pid 3216 but it says:

ERROR: The process "3216" not found."

If I browse to http://127.0.0.1:8080 I get one of the errors below, so it looks a bit like a webserver of some sort. If I try to kill the process in TCPView nothing happens. Can anyone make any other suggestions?

Forbidden. You don't have permission to access / on this server.

Internal Server Error. The server encountered an internal error or
misconfiguration and was unable to complete your request. Please
contact the server administrator, admin@example.com and inform them of
the time the error occurred, and anything you might have done that may
have caused the error. More information about this error may be
available in the server error log.

Best Answer

Use netstat -ba in administrator level command prompt, and you will see all active network sockets and processes that own those sockets.

  • -b tells netstat to output executable name of the socket owner.
  • -a tella netstat to list all listening and client sockets.