摘要: 服务端://方法一HttpContext.Current.Request.UserHostAddress;//方法二HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];//方法三stringstrHostName=System.Net.Dns.GetHostName();stringclientIPAddress=System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString();//方法四(无视代理)HttpContext.Current.Request.Se 阅读全文
posted @ 2011-01-25 13:35 北望 阅读(3813) 评论(0) 推荐(0) 编辑