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