title: TCPClient & Sockets failing to connect to the Server
body: <p>I have a very strange problem with my connection to a server on a TCPListener/TCPClient basis. At some point during testing I am unable to connect to my server-application anymore, every try it times out. Netstats on both sides show, that my application listens on the right port, and the client is trying to connect to the right ip and port, but it does not advance further than "SYN_SENT". The server just displays "LISTENING" all the time. All I can do is restart my PC, which temporarily fixes this problem. But after some connections, it starts all over again. 
  Up to now I tested TCPClient and Sockets class to connect to the server but both show this behaviour, what is not surprising, as TCPClient is a wrapper around the Sockets Class afaik.</p>
  
  <p>Firewall is checked on both sides, things like Remote Desktop work perfectly fine, and is not blocking the Connection of my Application. There are no connections left to close or something, already cheked everything I know (maybe not that much ;) )</p>
  
  <p>So whats the problem?</p>
  
  <p>Edit: </p>
  
  <p>A Method that needs to connect to my Server:</p>
  
  <pre><code>public int GetSomeDataFromServer(string blargh)
      {
          int ret;
          try
          {
              using(ConnectionTCPStream ctp = new ConnectionTCPStream())
              {
                  if(ctp.EstSecConnWithServ())
                  {
                      ret = CKSHandler(ctp, blargh);
                  }
                  else
                  { ret = (int)ErrFlags.ServerDeniedConnection; }
              }
              return ret;
          }
          catch(Exception)
          {
              InternalError = ErrFlags.ServerUnreachable;
              return (int)ErrFlags.ServerUnreachable;
          }
      }
  </code></pre>
  
  <p>The Constructor of my Class that is dealing with the Connections:</p>
  
  <pre><code>public ConnectionTCPStream()
      {
          Client = new TcpClient("VeryImportantAdress", 49778); //it fails right here!
          rsaCrypt = new RSACH() { RSAForeignPubKey = "An 8192-Bit long RSA Public key." };
          AESPASS = AESThenHMAC.CreatePassword(200);
      }
  </code></pre>