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

Ellouze Anis
  • 261
  • 2
  • 3
  • 8

1 Answers1

6

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
  • 26,769
  • 4
  • 48
  • 62
Mitch
  • 106,657
  • 24
  • 210
  • 268