Find the PID of a process that uses a port on Windows

前端 未结 7 1220
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 16:58

My service crash on startup with the classic:

java.rmi.server.ExportException: Listen failed on port: 9999

How can I find the process for k

7条回答
  •  不知归路
    2020-11-30 17:24

    Just open a command shell and type (saying your port is 123456):

    netstat -a -n -o | find "123456"
    

    You will see everything you need.

    The headers are:

     Proto  Local Address          Foreign Address        State           PID
     TCP    0.0.0.0:37             0.0.0.0:0              LISTENING       1111
    

提交回复
热议问题