title: StreamReader on NetworkStream not reading line
body: <p>I'm trying to make a class for easy Client/Server connections. Inside this class is a Server-Side Client, but it won't pick up things written to the server NetworkStream.
  In case you're wondering, I intend to have all data go through the server program before sending it out to the Client, so I need something to process all the data on the NetworkStream (Hence Server-Side Client). Here's my Class:</p>
  
  <pre><code>public class ConnectionServer
  {
      public readonly IPAddress ServerIP;
      public readonly IPAddress LocalIP;
      public readonly int Port;
      private TcpListener ServerIn;
      private Socket ServerSocket;
      private TcpClient ServerSideClient;
      private NetworkStream NetStream;
      public StreamReader ServerInput;
      public StreamWriter ServerOutput;
  
      public ConnectionServer(int port)
      {
          try
          {
              Port = port;
              ServerIP = IPAddress.Parse(NetHelper.GetPublicIP());
              LocalIP = IPAddress.Parse(NetHelper.GetLocalIP());
  
              ServerIn = new TcpListener(IPAddress.Any, Port);
              ServerIn.Start();                
              Console.WriteLine("Server Started At: " + ServerIP.ToString() + ":" + Convert.ToString(Port));
              ServerSideClient = new TcpClient("localhost", Port);
              ServerSocket = ServerIn.AcceptSocket();
              Console.WriteLine("Server-Side Client Socket Accepted.");
              NetStream = ServerSideClient.GetStream();
              ServerInput = new StreamReader(NetStream);
              ServerOutput = new StreamWriter(NetStream);
              ServerOutput.AutoFlush = true;
              Console.WriteLine("All Streams Initialized.");
              ServerOutput.WriteLine("Testing Server-Side Client.");                
              Console.WriteLine("Test Message Sent.");
              Console.WriteLine(ServerInput.ReadLine());
          }
  
          finally
          {
  
          }
      }
  
      ~ConnectionServer()
      {
          ServerInput.Dispose();
          ServerSideClient.Close();
      }
  
  }
  </code></pre>
  
  <p>It doesn't write anything on <code>Console.WriteLine(ServerInput.ReadLine());</code>. I can't figure out why it won't pick up the message off the stream.
  Help please?</p>