ipaddressVal = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (!string.IsNullOrEmpty(ipaddressVal)) { string[] ipRange = ipaddressVal.Split(','); int le = ipRange.Length - 1; ipaddressVal = ipRange[le]; } else ipaddressVal = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)