通过下面的语句可以获取客户端ip
CustomerIP=HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString()
获取客户端IP地址
CustomerIP=HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"].ToString()

被折叠的 条评论
为什么被折叠?