terminate server on local port code example
Example 1: windows kill port
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
Example 2: stop localhost server
netstat -ano | findstr :yourPortNumber
tskill typeyourPIDhere
netstat -ano | findstr :3001
taskkill /PID <yourid> /F
netstat -ano | findstr :yourPortNumber
tskill typeyourPIDhere