title: How to send SYN packet using C# or Java
body: <p>I want to send SYN packet to a remote host, now the problem is that if I use any of the classes of .NET framework then I cannot to do this; e.g. TCP Client takes Host ip and port number and establishes connection, same is the case with ClientSocket class in java. </p>
  
  <p>I want to control the connection establishment my self; I mean I want to send the connection request (SYN packet) then wait for the  connection reply and then send the packet. I know that it might not be easy without external libraries, so if any one can guide me how to do it in either C# or Java. . </p>