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
Step 1
C:> netstat -ano | findstr :YourPortNumber
Step 2
C:> taskkill /PID enterPID /F
## check and kill used "ports"
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
#for windows
#replace <PID> with your process id
taskkill /PID <PID> /F