how to stop a port from running code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: how to stop port 8080
netstat -ano | findstr <Port Number>
Example 3: how to stop port 8080
taskkill /F /PID <Process Id>
Example 4: cli kill what is listening on port
kill $(lsof -t -i:53) #Kill the process listening on port 53