you know how u can get the tcp connections table... well, how would i close one of those connections?
Printable View
you know how u can get the tcp connections table... well, how would i close one of those connections?
Does it have a method associated with it called .Close() ?
Im tryin to close an "external" connection... I didn't make the connection, it was established through another program or whatever. You know how if you type the dos command... netstat -n ... and it shows you all of your tcp connections (tcp table).... well, how would i be able to close one of them?
Im makin an anti-cheat program for a game, and when someone is caught cheating, or isnt running the anticheat program, I want it to terminate their connection to the host of the game...
So I basically want to know how to close an external tcp/winsock connection...
You would go crazy trying this in VB. There are C samples of messing with connection ports in the PsTools kit.
It's a freebie from www.sysinternals.com. has the tool kit and source code, too.
404 error :( ... but i found an example at vbip.com that uses the IP Helper API (iphlpapi.dll)... I'm going to be experimenting with this later. Hopefully this works out! :)
The best way to break a TCP/IP connection is to unplug your network cable or phone wire. :D :o ;)
This is a task I need to accomplish as well. I will work on something and let you know
Being a 4.5 year old thread, I don't think they are still looking for it. No real point ressurecting this thread, is there ;)
If however you do find something that you find useful, you can post it in the codebank (which is at the bottom of all forums on the main page) :)
Woopsies, and I just started a thread on it too. Haha. :-/ Forum newb.
Don't worry, no harm done :) Just something to keep in mind next time ;)