Java - How can I prefer IPv6?

前提是你 提交于 2019-12-02 06:04:18
-Djava.net.preferIPv6Addresses=true

This jvm argument will work.

ct_

IPv6 in Java is transparent and automatic. Just provide an an IPv6 address and you'll be good to go. Also check that your jvm does NOT have the following set to true

-Djava.net.preferIPv4Stack=true

More details here:

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!