+ Reply to Thread
Results 1 to 6 of 6
Like Tree3Likes
  • 1 Post By tgkprog
  • 2 Post By Armacci Design

Thread: kill a tcp ip connection in windows (XP)

  1. #1
    tgkprog is offline x10 Sophmore tgkprog is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    Bangalore India
    Posts
    225

    Question kill a tcp ip connection in windows (XP)

    i can see a list of TCP connection via netstat but do u know of a way to forecefully close/ end a connection?

    Code:
    C:\>netstat
    
    Active Connections
    
      Proto  Local Address          Foreign Address        State
      TCP    TGK1:1451              localhost:1452         ESTABLISHED
      TCP    TGK1:1727              x10hosting.com:http    CLOSE_WAIT
      TCP    TGK1:1730              207.211.65.15:http     CLOSE_WAIT
      TCP    TGK1:1733              im-in-f127.google.com:http  CLOSE_WAIT
    dinomirt96 likes this.
    http://sel2in.com/ Java - Mobile, Website applications PHP, My SQL, VB6 & VBA http://www.thehungersite.com

  2. #2
    steronius's Avatar
    steronius is offline x10 Sophmore steronius is an unknown quantity at this point
    Join Date
    Feb 2008
    Posts
    191

    Re: kill a tcp ip connection in windows (XP)

    I think you'd have to kill the application running that uses it.

    Maybe spyware, or ligitimate software.

    i found this, but dont know if it's related to you issue.
    http://forum.kaspersky.com/index.php?showtopic=25253

  3. #3
    Armacci Design is offline x10Hosting Member Armacci Design is an unknown quantity at this point
    Join Date
    Jun 2008
    Posts
    38

    Re: kill a tcp ip connection in windows (XP)

    If you can't close the specific connection for some reason, I would suggest reviewing your firewall's allow/disallow program rules, and prohibit everything that you aren't explicitly familiar with from connecting.
    verlmirt17 and karimirt47 like this.

  4. #4
    vol7ron's Avatar
    vol7ron is offline x10 Lieutenant vol7ron is an unknown quantity at this point
    Join Date
    Mar 2008
    Location
    DC
    Posts
    434

    Re: kill a tcp ip connection in windows (XP)

    The CLOSE_WAIT states are already terminated from the foreign end - your machine received the "FIN" packet. The reason it appears as open is that your OS still needs to terminate the local application that is performing the connection.

    So, once the application realizes the socket is closed, it will send it's FIN and free the socket. This is natural to have lingering CLOSE_WAITs. After the CLOSE_WAIT loop, you'll enter the TIME_WAIT cycle.

    If your CLOSE_WAIT is being held open, it is most likely a problem with the application. Try killing the application through Windows Task Manager. Or use "ps" and "kill" in your command program to kill the process that is holding the connection open.
    Last edited by vol7ron; 10-29-2008 at 02:04 PM.
    If you find my post useful please add to my reputation by clicking the +Rep button
    You may also use the Donate link to donate credits - this is appreciated too Thanks to those whom have donated so far!


  5. #5
    Smith6612's Avatar
    Smith6612 is offline <<< wants a Turkey Smith6612 has a spectacular aura about
    Join Date
    Dec 2007
    Location
    Exploded
    Posts
    6,483

    Re: kill a tcp ip connection in windows (XP)

    A CLOSE_WAIT state as stated above is perfectly normal. If you are concerned about where connections are going, firewalls and router NAT logs are useful for such things. Also, killing a process of a program should close the connection. If worst comes to worst, you can always kill a connection by timing it out by disconnecting the internet.

    My signature likes cookies! Do you? :D

  6. #6
    tgkprog is offline x10 Sophmore tgkprog is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    Bangalore India
    Posts
    225

    Re: kill a tcp ip connection in windows (XP)

    yes closing the net is a quick way. i wanted to closed some of the tcps cause i had a lot of congestion i was hopeing i can do it without going to every tab in the browsers (opera and IE) and closing ...
    Edit:
    there must be some windows api to close it - any VB/ c++ folks?
    Last edited by tgkprog; 10-30-2008 at 01:50 PM. Reason: Automerged Doublepost
    http://sel2in.com/ Java - Mobile, Website applications PHP, My SQL, VB6 & VBA http://www.thehungersite.com

+ Reply to Thread

Similar Threads

  1. 300 short cuts of Windows XP
    By goodone in forum Computers & Technology
    Replies: 34
    Last Post: 11-29-2011, 12:12 AM
  2. Useful shortcut keys
    By manzoor in forum Tutorials
    Replies: 11
    Last Post: 04-24-2010, 02:00 AM
  3. Overview of Windows Heart - The Registry
    By Tariqul Islam in forum Tutorials
    Replies: 10
    Last Post: 09-24-2008, 05:03 AM
  4. A nice article on Windows Services
    By sumitmehta in forum Tutorials
    Replies: 6
    Last Post: 05-12-2008, 05:53 AM
  5. Windows Vista Leaked
    By n4tec in forum Scripts & 3rd Party Apps
    Replies: 20
    Last Post: 11-06-2006, 08:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers