Java程序IP v6与IP v4的设置

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 not
System.setProperty("java.net.preferIPv4Stack", "true");
       

猜你喜欢

转载自www.cnblogs.com/stono/p/9078643.html
今日推荐