how to close all ports running on my local machine code example Example: windows kill port netstat -ano | findstr :3001 taskkill /PID <yourid> /F