Computing.Net > Forums > Windows 2000 > How 2 kill current port connection?

How 2 kill current port connection?

Reply to Message Icon

Original Message
Name: Jang-Soo
Date: March 20, 2003 at 13:18:36 Pacific
Subject: How 2 kill current port connection?
OS: 2k
CPU/Ram: p4
Comment:

I have a program running that has many remote hosts connected to it using several different TCP and UDP port #s. I want to be able to kill current remote connections based on port # or IP.

In Windows there is no TCP-IP command that I know that will do this, so is there a 3rd party app that does this ?

Thanks


Report Offensive Message For Removal

Response Number 1
Name: DanielG
Date: March 20, 2003 at 13:39:29 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

Yes try doing a search for a program called activeports. I believe that you can find it a bhs.com.
It's freeware~


Report Offensive Follow Up For Removal

Response Number 2
Name: Jang-soo
Date: March 20, 2003 at 20:58:17 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

Thanks, I have not tried it yet, but it looks good.


Report Offensive Follow Up For Removal

Response Number 3
Name: Jang-soo
Date: March 20, 2003 at 21:27:34 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

Nope !!

It kills the whole process.

I want to leave the program that this remote IP is connected to on my machine running,... I just want to kill that remote tcp or udp connection to my computer.

Any more ideas ????


Report Offensive Follow Up For Removal

Response Number 4
Name: Rick
Date: March 21, 2003 at 06:24:07 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

Wouldn't a program running through a remote connection stop if the connection is stopped?

Which is what you said you wanted but don't want?

Maybe it's just me, but ????????????


Report Offensive Follow Up For Removal

Response Number 5
Name: Daniel
Date: March 21, 2003 at 09:37:20 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

I agree Rick, I do not think that there is anything that I know off JangSoo that will work for what you are asking


Report Offensive Follow Up For Removal


Response Number 6
Name: Jang-Soo
Date: March 21, 2003 at 11:51:10 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

Ok, what if a hacker was connected to my computer and I saw this by using netstat -an. I could see his IP and the port he was connected to (if in XP I could use netstat -ano and see the process he was connected to as well).
So, if it was a process (service or program) that I did not want to shutdown, how could I just kill the hackers connection ??


Report Offensive Follow Up For Removal

Response Number 7
Name: Rick
Date: March 21, 2003 at 14:13:00 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

If the hacker is using the same port to connect as a service then blocking/killing the port will kill the service as well since it is also using the port.

If the hacker is using the same port as the service he prolly is using the service as well and you should kill it all.

If I had a hacked system I would kill the whole thing and reboot to safe mode and clean the system, it's bound to be really compromised at this point, why keep it running?



Report Offensive Follow Up For Removal

Response Number 8
Name: Jang-Soo
Date: March 21, 2003 at 21:41:09 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

OK, I guess I am being too vague.
What happened was I was connected to a DirectConnect hub to do some file sharing.
When I did a netstat I saw that I had a few users connected to my machine using only one port each, but one particular user (IP) had connected to my computer using several port numbers and I could not use DirectConnect to kill his connection, when you usually can. Netstat showed all these ports were using the DirectConnect PID.
So I did not want to terminate DirectConnect and kill my downloads, I just wanted to close the ports that this user was connected to.


Report Offensive Follow Up For Removal

Response Number 9
Name: Jang-Soo
Date: March 21, 2003 at 21:43:15 Pacific
Subject: How 2 kill current port connection?
Reply: (edit)

So what you are saying is that any process that runs is control of the port or ports that it opens and if you kill the process all the ports close. I realize this but just wanted to kill one port that the process is using and not all of the ports.

Is this possible?


Report Offensive Follow Up For Removal






Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: How 2 kill current port connection?

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software