netstat -ano | findstr 8080
taskkill /pid 21424 /F
netstat -ano | findstr 8080
taskkill /F /pid 1088
netstat -ona | findstr :8080 | findstr LISTENING
Code language: Bash (bash)
taskkill /PID 25321 /F
**npx kill-port 8080** //8080 for example
lsof -i :8080 //returns the PID (process id) that runs on port 8080
kill 1234 //kill the process using PID (used dummy PID here)
lsof -i :8443
kill 4321
netstat -ona | findstr :8080 | findstr LISTENING
Code language: Bash (bash)
taskkill /PID 25321 /F
netstat -ona | findstr :8080 | findstr LISTENING
Code language: Bash (bash)