close specific port windows code example
Example 1: remove port binding windows
netstat -a -n -o | findstr :80
TaskKill /PID pidnum
Example 2: how to shutdown port in windows
netstat -ano | findstr < Port Number >
taskkill /F /PID < Process Id >
Example 3: stop kill network connection using cmd line
%%P instead of %P