remove port binding windows code example
Example 1: remove port binding windows
netstat -a -n -o | findstr :80
TaskKill /PID pidnum
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
Example 3: stop kill network connection using cmd line
findstr :8080
Example 4: stop kill network connection using cmd line
%%P instead of %P