how to kill a post in windows using cmd prompt code example Example: windows kill port netstat -ano | findstr :3001 taskkill /PID <yourid> /F