kill all ports cmd code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: kill all process at port
lsof -ti tcp:2525 | xargs kill
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
lsof -ti tcp:2525 | xargs kill