zwei1121

博客园 首页 新随笔 联系 订阅 管理

09 2008 档案

摘要:1.将IP地址转化为整形 System.Net.IPAddress ip= System.Net.IPAddress.Parse("192.168.1.2"); int iplong =(int) ip.Address; 2.将整型变为IP地址 int j=23543; System.Net.IPAddress... 阅读全文
posted @ 2008-09-01 19:01 zwei 阅读(272) 评论(0) 推荐(0)

摘要:public string GetRealIP() { string ip; try { HttpRequest request = HttpContext.Current.Request; if (request.ServerVariables["HTTP_VIA"] != null) { ip 阅读全文
posted @ 2008-09-01 11:16 zwei 阅读(321) 评论(0) 推荐(0)