kill process from netstat code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: how to stop port 8080
C:\Users\RevisitClass>taskkill /F /PID 19788
SUCCESS: The process with PID 19788 has been terminated.