Does somebody knows how to close a TCP or UDP socket for a single connection via windows command line?
Googling about this, I saw some people asking the same thing.
Try the tools TCPView (GUI) and Tcpvcon (command line) by Sysinternals/Microsoft. https://docs.microsoft.com/en-us/sysinternals/downloads/tcpview