Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
5.1k views
in Technique[技术] by (71.8m points)

java 获取ipv6 失败

String result = HttpUtil.get("https://www.taobao.com/help/getip.php");
我通过java 请求 https://www.taobao.com/help/g...,获取ipv6地址,放回的结果却是ipv4,在浏览器中请求是ipv6

使用的请求工具是Hutool的HttpUtil


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

我只能说我打开那网址,返回的就是ipv4


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...