title: Why am I getting ::1 as the IP address in ASP.NET, and how to get the proper IP address?
body: <p>I am running an ASP.NET MVC app in the localhost - dev server given with a Visual Studio. I want to get the IP address. I tried</p>
  <p><code>Request.UserHostAddress</code></p>
  <p>and</p>
  <p><code>Request.ServerVariables(&quot;REMOTE_ADDR&quot;)</code></p>
  <p>In both cases, I am getting::1 as a result. What is it? Why am I getting it? How can I get 127.0.0.1 or 192.168.1.xxx?</p>