获取当前用户的ip地址(精确,继...)
摘要:
1 public string GetUserIp 2 { 3 get 4 { 5 string ip; 6 string[] temp; 7 bool isErr = false; 8 if (HttpContext.Current.Request.ServerVariables["HTTP_X_ForWARDED_For"] == null) 9 ip = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToStri... 阅读全文
posted @ 2011-12-01 11:52 slnt 阅读(278) 评论(0) 推荐(0) 编辑