title: java socket and DoS
body: <p>I wrote a little java program that establishes a socket connection (port 23456) over TCP between a server (pong.java) and a client (ping.java). I start the server and then the client which sends ping and the server responds with pong. This happens 50 times.</p>
  
  <p>This works all fine but now i want to shut this down using a SYN Flood DoS attack with hping3, but i can't get it to work. I can easily stop a file transfer running between the client and the server over SMB with the same DoS program. The server definitely gets the SYN packages- When i attack the same port the java socket connection uses it just shuts the attack down and the java program happily finishes the 50 loops. i can't figure out why. is there some protection in java or do sockets in java work different than a TCP exchange over SMB?</p>
  
  <p>I do this for a network class and i just can't figure it out. I just attack myself between 3 VMs so no one will get harmed.</p>
  
  <p>I can provide the source code or further information if needed. </p>
  
  <p>Thanks a lot if anyone can help.</p>