stop port 5000 in windows code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: kill service by port number on windows
taskkill /F /PID PORT_NUMBER
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
taskkill /F /PID PORT_NUMBER