netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
//Open command prompt and run the following commands
C:Usersusername>netstat -o -n -a | findstr 0.0:3000
TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 3116
C:Usersusername>taskkill /F /PID 3116
//here 3116 is the process ID
netstat -ano | findstr : <port>
taskkill /PID <PID> /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
netstat -ano | findstr :YourPortNumber
taskkill /PID enterPID /F
netstat -ano | findstr :<PORT>
taskkill /PID <PID> /F
netstat -ano | findstr :<PORT>
taskkill //PID <PID> //F
OR
taskkill /PID <PID> /F
# find the process
netstat -ano | findstr :<PORT>
# kill the process
taskkill /PID <PID> /F
netstat -ano | findstr :<yourPortNumber>
taskkill /PID <typeyourPIDhere> /F
Check this gist
https://gist.github.com/abhagsain/620120eb99cc5944d478a23757f9e00f
FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8080') DO @ECHO TaskKill.exe /PID %%P
#for windows
#replace <PID> with your process id
taskkill /PID <PID> /F