How to kill a port in Windows OS ? – SOLVED

Run command-line as an Administrator

netstat -ano | findstr :<yourPortNumber>

This would show you a list like this:

In above screenshot you can see a row with word “LISTENING” and id 22344

Copy that id and run following command to kill that process id:

taskkill /PID <typeyourPIDhere> /F

No port is killed successfuly.

Leave a Reply

Your email address will not be published. Required fields are marked *