command to kill a process running on a port code example Example: windows kill port netstat -ano | findstr :3001 taskkill /PID <yourid> /F