Get IPAddress C# [closed]
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
?
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
精彩评论