8

how to stop socket in linux :

socket ==>

root@root:/home/aa/test# netstat | grep 3966      
tcp        0      0 server:3966       server:57004       TIME_WAIT  

thank

1 Answers1

7

Try this. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo netstat -ap | grep :<port_number>

Also you can try this to close the socket connection

tcpkill -i eth0 host xxx.xxx.xxx.xxx and port yyyy

Replace X with the IP address, and Y with the port number.

also take a look at tcpkill and cutter command


Jeremy Kerr
  • 27,829
Mitch
  • 109,787