摘要: //方法一HttpContext.Current.Request.UserHostAddress; //方法二HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];//方法三string strHostName = System.Net.Dns.GetHostName();string clientIPAddress = System.Net.Dns.GetHostAddresses(strHostName).GetValue(0).ToString(); 但如果客户端是使用代理服务器来访问,那取到的就是代理服 阅读全文
posted @ 2013-03-13 11:12 云中雀 阅读(450) 评论(0) 推荐(0) 编辑