title: How to get the user ip address (REMOTE_ADDR / HTTP_X_FORWARDED_FOR) on HTTPS and Load Balancing
body: <p>I need to get the ip address of the users of my website, because I need to present localized content according to country.  </p>
  
  <p>I have a load balancing server and because this I use the <strong>HTTP_X_FORWARDED_FOR</strong> to get the ip address, its ok, but since I set the HTTPS for the entire site I cannot get the <strong>HTTP_X_FORWARDED_FOR</strong> data, it returns empty, and only can get the <strong>REMOTE_ADDR</strong>, but this returns the Load Balancing Server ip address and not the user ip address.</p>
  
  <p>How I can get the user's ip address when using load balancing and HTTPS?</p>
  
  <p>I'm using ASP.NET 2.0</p>