if HttpContext.Current.Request.UserHostAddress 为空elseHttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
Request.UserHostAddress;