Improve company productivity with a Business Account.Sign Up

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
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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