路漫漫,求索不息

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年7月26日

摘要: //方法一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.Requ 阅读全文
posted @ 2013-07-26 07:01 技术广场 阅读(182) 评论(0) 推荐(0)