摘要:
问题: 查询本地IP地址的时候显示的是IPv6的0:0:0:0:0:0:0:1 解决方式: 将localhost换成127.0.0.1访问 因为电脑优先把localhost解析成了IPv6 亲测有效 更改后: PS:csdn全是复制粘贴的吐了 附:获取IP的通用方法 阅读全文
posted @ 2022-03-07 00:55
紫英626
阅读(1019)
评论(0)
推荐(0)
摘要:
public static String getIPAddress(HttpServletRequest request) { String ip = null; //X-Forwarded-For:Squid 服务代理 String ipAddresses = request.getHeader( 阅读全文
posted @ 2022-03-07 00:34
紫英626
阅读(226)
评论(0)
推荐(0)

浙公网安备 33010602011771号