how to free all ports in windows using cmd code example
Example 1: stop kill network connection using cmd line
TaskKill.exe /PID <value>
Example 2: stop kill network connection using cmd line
FOR /F ... %variable IN ('command') DO otherCommand %variable...