title: Get User's IP Address in a Share Point Web Part not giving valid IP address
body: <p>This code in a standard custom WebPart:</p>
  
  <pre><code>private string GetUserIP()
  {
       return Request.ServerVariables["HTTP_X_FORWARDED_FOR"] ?? Request.ServerVariables["REMOTE_ADDR"];
  </code></pre>
  
  <p>} </p>
  
  <p>is returning: <code>"fe80::c564:7922:d873:5cf5%11"</code> instead of a valid IP address. It does this for every method I've found on Google for retrieving it, including HttpRequest.UserHostAddress.</p>
  
  <p>Does anyone have an idea what is going on?</p>
  
  <p><strong>Edit:</strong> For some reason it's giving me IPv6 when loading the page locally, but works as intended when I access from a different machine :/</p>