Q:
I need to know the difference among the following:
Request.ServerVariables["HTTP_X_FORWARDED_FOR"] ;
Request.ServerVariables["REMOTE_ADDR"];
System.Web.HttpContext.Current.Request.UserHostAddress;
System.Net.IPAddress[] strClientIPAddress = System.Net.Dns.GetHostAddresses(Environment.MachineName);
I want to get the client IP
address (the user who access the site)and I'm confused among the previous methods which one more accurate.