string sIPAddress = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (string.IsNullOrEmpty(sIPAddress)) sIPAddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; return sIPAddress;
string sIPAddress = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (string.IsNullOrEmpty(sIPAddress)) sIPAddress = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]; return sIPAddress;
0 comments:
Post a Comment