netstat -ano | findstr <Port Number>
taskkill /F /PID <Process Id>
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
## Get PID Id on port:
netstat -ano | findstr <Port Number>
## Kill task on PID:
taskkill /F /PID <Process Id>
## Process Id is the last numbers at the end of a line.
# Print PID of process bound on that port.
fuser 8080/tcp
# Kill that process
fuser -k 8080/tcp
netstat -ano | findstr :<PORT>
taskkill /PID <PID> /F
Check this gist
https://gist.github.com/abhagsain/620120eb99cc5944d478a23757f9e00f
# shows information on Processes running on port 80 with PIDs
$: sudo lsof -i tcp:80
$: sudo lsof -t -i tcp:80 | sudo xargs kill
kill process in windows
#for windows
#replace <PID> with your process id
taskkill /PID <PID> /F