Difference between Request.ServerVariables["HTTP_X_FORWARDED_FOR"] and Request.ServerVariables["REMOTE_ADDR"] in Asp.net
-
Hi, What is the difference between Request.ServerVariables["HTTP_X_FORWARDED_FOR"] and Request.ServerVariables["REMOTE_ADDR"] in Asp.Net. I think both are used for showing the system's IP address. then what's the major difference between both? anybody pls explain me clearly. Regards Vijay.
-
Hi, What is the difference between Request.ServerVariables["HTTP_X_FORWARDED_FOR"] and Request.ServerVariables["REMOTE_ADDR"] in Asp.Net. I think both are used for showing the system's IP address. then what's the major difference between both? anybody pls explain me clearly. Regards Vijay.
vijay_83 wrote:
HTTP_X_FORWARDED_FOR
The IP address of the system that is actually displaying the webpage.
vijay_83 wrote:
REMOTE_ADDR
The Proxy/Firewall right? Quoting from http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html[^], there should be a
VIA
header too: If the response is being forwarded through a proxy, the proxy application MUST NOT modify the Server response-header. Instead, it SHOULD include a Via field (as described in section 14.45).Vasudevan Deepak Kumar Personal Homepage Tech Gossips