Tuesday, November 6, 2012

Windows: find and kill process with a particular port


netstat -ano displays all the tcp and udp process with assinged process id's.
To get a process with a particular port (say 8080) use
netstat -ano | findstr 8080
This would display something like

here 82360 is the PID. Now to kill this process use
kill -f 82360
You can verify if the process has indeed been killed by executing netstat -ano | findstr 8080 again

No comments:

Post a Comment