//client connecting to a web server through an HTTP proxy or load balancer String ip = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (string.IsNullOrEmpty(ip)) { ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; } return ip;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)