如何获取HTTP_X_FORWARDED_FOR IP地址?
HTTP客户端IP
HttpContext.Current.Request.UserHostAddress.ToString();
HTTP X-FORWARDED FOR //代理IP地址
远程地址
答案 0 :(得分:1)
请参阅http://msdn.microsoft.com/en-us/magazine/cc163692.aspx,以便从http请求中检索所谓的“服务器变量”HTTP_X_FORWARDED_FOR ...