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
Find the PID of a process that uses a port on Windows (e.g. port: "9999")
netstat -aon | find "9999"
-a Displays all connections and listening ports.
-o Displays the owning process ID associated with each connection.
-n Displays addresses and port numbers in numerical form.
Output:
TCP 0.0.0.0:9999 0.0.0.0:0 LISTENING 15776
Then kill the process by PID
taskkill /F /PID 15776
/F - Specifies to forcefully terminate the process(es).
Note: You may need an extra permission (run from administrator) to kill some certain processes