Java程序IP v6与IP v4的设置
//Prevent to get IPV6 address,this way only work in debug mode//But you can pass use -Djava.net.preferIPv4Stack=true,then it work well whether in debug mode or notSystem.setProperty("java.net.preferIPv4Stack", "true");
本文共 288 字,大约阅读时间需要 1 分钟。
Java程序IP v6与IP v4的设置
//Prevent to get IPV6 address,this way only work in debug mode//But you can pass use -Djava.net.preferIPv4Stack=true,then it work well whether in debug mode or notSystem.setProperty("java.net.preferIPv4Stack", "true");
转载于:https://www.cnblogs.com/stono/p/9078643.html