Friday, 27 June 2014

Windows: Fastest way of killing a process running on a specific port

Windows: Fastest way of killing a process running on a specific port


I have to kill a process on a Windows machine and I just know its port. Normally the steps are as below: Find the PID by looking at the ports (example port 515) List the processes running on ports

netstat -a -o -n
And then kill the process on that port with the following command

taskkill /F /PID <pid>

No comments:

Post a Comment