SyntaxFix
Write A Post
Hire A Developer
Questions
You can use System.setProperty("java.net.preferIPv4Stack" , "true");
System.setProperty("java.net.preferIPv4Stack" , "true");
This is equivalent to passing it in the command line via -Djava.net.preferIPv4Stack=true
-Djava.net.preferIPv4Stack=true