title: How to get private IP address of User when User login to my Web Application
body: <p>I'm trying to get the client's IP address of a User. My code is returning the server's (host) IP address.</p>
  
  <pre><code>string strHostName = System.Net.Dns.GetHostName()
  IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName);
  IPAddress[] addr = ipEntry.AddressList;
  string ip = addr[6].ToString();
  return ip;
  </code></pre>
  
  <p>I need IP address of the client, not a server IP.</p>