title: Can you retrieve the hostname and port from a System.Net.Sockets.TcpClient?
body: <p>Is it possible to retrieve the underlying hostname/port from a new TcpClient?</p>
  
  <pre><code>TcpListener listener = new TcpListener(IPAddress.Any, port);
  TcpClient client = listener.AcceptTcpClient();
  // get the hostname
  // get the port
  </code></pre>
  
  <p>I've routed around in <code>client.Client</code> (a <code>System.Net.Socket</code>), but can't find anything out in there either. Any ideas?</p>
  
  <p>Thanks all.</p>