windows kill process attached to port code example Example: windows kill process on port netstat -ano | findstr :<PORT> taskkill /PID <PID> /F