How do I get the HTTP_X_FORWARDED_FOR Ip Address?
-
HTTP CLIENT IP
HttpContext.Current.Request.UserHostAddress.ToString();
-
HTTP X-FORWARDED FOR //proxy ip address
?
-
REMOTE ADDRESS
?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
see http://msdn.microsoft.com/en-us/magazine/cc163692.aspx for retrieving the so-called “server-variable” HTTP_X_FORWARDED_FOR from a http request…
For an explanation see http://forums.asp.net/t/1138908.aspx