Get IP address of user computer in C#
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net">How to get a user&#39;s client IP address in ASP.NET?</a>  </p>
</blockquote>



<p>I have a application in which i have to get IP address of user who accessing my site.
My site is hosted on Go Daddy hosting server.
I have tried several codes(which are listed below) but it seems they are not working.</p>

<pre><code>HttpContext.Current.Request.UserHostAddress.ToString(); 

Request.UserHostAddress.ToString();

Request.ServerVariables["HTTP_X_FORWARDED_FOR"];

Request.ServerVariables["REMOTE_ADDR"];

HttpContext.Current.Request. Server Variables["HTTP_X_FORWARDED_FOR"];
</code></pre>

<p>I have been working on this since last 3 days but i could not find any good solution.
Any good solution for this.</p>

<p>Please help me to do this.</p>

<p>Thank you.</p>
