how to terminate all current localhosts code example
Example 1: port already in use windows 10
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