how to stop a tcp port from listening code example
Example 1: stop kill network connection using cmd line
"tokens=4 delims= "
Example 2: stop kill network connection using cmd line
FOR /F ... %variable IN ('command') DO otherCommand %variable...