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.
In order to close the port you could identify the process that is listening on this port and kill this process.