[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 700
  • Last Modified:

Delete a TCP/IP connection via command line?

I have several TCP/IP connections from a Windows 2003 backup server to a server to be backed up that are related to the backup program Acronis. Acronis claims it cannot see the server in question and I think it might have something to do with all of these connections that are already showing to be open. I can see them with netstat, but I don't know how to close them without restarting the interface. How can I close them on the command line without affecting the other connections?
0
numb3rs1x
Asked:
numb3rs1x
  • 2
1 Solution
 
QlemoDeveloperCommented:
Use (free) tcpvcon from www.sysinternals.com to kill TCP sessions from cmdline
0
 
numb3rs1xAuthor Commented:
Any way to do this without using third party tools?
0
 
dlb6597Commented:
try:

net session \\your-ip-address /delete  

or

net use \\your-ip-address /delete

or open server management on the client and kill any sessions originating from your backup server.
0
 
QlemoDeveloperCommented:
For the TCP connection, there is no integrated tool to kill the session.
If it is a NetBIOS session, you can use net use or net session as  in dlb6597's post.

0
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now