kill all listener on a specific port windows server code example Example: windows kill port netstat -ano | findstr :3001 taskkill /PID <yourid> /F