windows 10 kill all command prompt code example
Example 1: kill process on port windows
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
Example 2: stop kill network connection using cmd line
FOR /F "tokens=4 delims= " %%P IN ('netstat -a -n -o ^| findstr :8080') DO TaskKill.exe /PID %%P