title: Getting the IP Address of a Remote Socket Endpoint
body: <p>How do I determine the remote IP Address of a connected socket?</p>
  
  <p>I have a RemoteEndPoint object I can access and well as its AddressFamily member.</p>
  
  <p>How do I utilize these to find the ip address?</p>
  
  <p>Thanks!</p>
  
  <p>Currently trying</p>
  
  <pre><code>IPAddress.Parse( testSocket.Address.Address.ToString() ).ToString();
  </code></pre>
  
  <p>and getting 1.0.0.127 instead of 127.0.0.1 for localhost end points. Is this normal?</p>