Possible Duplicate:
How to get a user's client IP address in ASP.NET?
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.
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"];
I have been working on this since last 3 days but i could not find any good solution. Any good solution for this.
Please help me to do this.
Thank you.