stop running port in windows code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: windows stop process running on port 8080
netstat -ano | findstr <Port Number>
taskkill /F /PID <Process Id>
Example 3: stop task on port
npx kill-port 8080