Kill process holding a port / listening on port

Using Command Prompt (cmd.exe) execute the following:

netstat -aon |find "[port]"

ex.
netstat -aon |find "8080"

find the processi listening on the selected port an kill it

taskkill /f /pid [port]

ex.
taskkill /f /pid 13708

The following message confirms the action:
SUCCESS: The process with PID [port] has been terminated.

No comments:

Post a Comment