0

I have a TCP server listening on some port on my box (Windows XP). There are many users connected to it. Now without bringing down server application or box, or without unplugging network cables how can I disconnect those connections? I am not very well versed with network related commands (e.g. net, netsh, netstat etc.) but I believe there must be some command to do this.

closed as off-topic by Ward, Michael Hampton Jul 19 '14 at 6:12

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Michael Hampton
If this question can be reworded to fit the rules in the help center, please edit the question.

1

TCPView from Sysinternals (now part of Microsoft) will let you close established connections. This is a free download and the whole toolkit should honestly be part of the default install.

1

Technically, you could probably achieve this end by sending crafted packages to your peers that make them reset the TCP connections. I am not aware of a toolchain that makes this readily possible on Windows XP (or other platforms).

You could also block the connections individually using a firewalling tool. Again, I'm not aware of a Windows CLI for this purpose.

0

Actually there is not a command to achieve what you are thinking. Network sockets are child processes of the server process a.k.a main process. you can't take property from them. The only way to manage those connections is from the server application or restarting the server process, which kill all the child processes.

0

Disabling (or otherwise nerfing) your network adapter would effectively kill all the connections to your machine as well.

-1

You can do so by using SQL server configuraion manager. Because all network protocols are install through SQL setup.

  • It is not SQL server. It's some other server (based on TCP protocol) which doesn't provide way to disconnect users without shutting it down. – Atul Jul 18 '14 at 7:01
  • 2
    This is factually incorrect. – Felix Frank Jul 18 '14 at 13:32

Not the answer you're looking for? Browse other questions tagged or ask your own question.