Question : Disconnect connections from a particular IP

Hello

I want a program that disconnects all TCP/UDP connections from a particular IP.

Call it disconnect.exe . If you go to command line and type "netstat -n" you will see all the computers that have made a TCP or UDP connection to the PC. I need an application for this  that called like "disconnect 192.168.1.89" will disconnect all the connections from that IP address. I wish to develop this program in C# but have no idea.

Do anyone know about such a tool or the ways to implement it

thanks
booleeeeee

Answer : Disconnect connections from a particular IP

I have used a packet generator to send RST packets to a machine to kill a socket connection and there were two problems that I faced in trying to write a program to do it  . . . (actually there were 3: the third thing is that I am not smart enought).

The first is that you need to be able to send the proper ACK / SEQ number and the second is that you need to be able to calculate a check sum for the packet. When I used the packet generator I would send the packet and get a failure message stating "check sum incorrect, should be xxxxx"

I'll haul out my packet generator and start fiddling with it again.

Good luck.
Random Solutions  
 
programming4us programming4us