`
crazyprom
  • 浏览: 5305 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
package utils; import javax.servlet.http.HttpServletRequest; public class IPUtil { public static String getRemortIP(HttpServletRequest request) { if (request.getHeader("x-forwarded-for") == null) { return request.getRemoteAddr(); } return request.getHeader("x-for ...

ASP获取IP

    博客分类:
  • ASP
<%ip=request.ServerVariables("REMOTE_ADDR") response.Write(ip)%> 较准的获取IP: <%Private Function getIP() Dim strIPAddr If Request.ServerVariables("HTTP_X_FORWARDED_FOR") = "" OR InStr(Request.ServerVariables("HTTP_X_FORWARDED_FOR"), "u ...
package utils.weixin; import java.io.BufferedReader; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStream; import java.net.HttpURLC ...
Global site tag (gtag.js) - Google Analytics