how to stop a localhost port code example Example: port already in use windows 10 netstat -ano | findstr :3001 taskkill /PID <yourid> /F