You can only set java.net.preferIPv4Stack=true when starting the JVM, after
that - at run time - setting this system prop has no effect. You could spawn a
new JVM though...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-08-21
Thank you kindly. Added to my VM start options and all is well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
How might I go about using this jar in my build path while programmatically
forcing IPv4?
You can only set java.net.preferIPv4Stack=true when starting the JVM, after
that - at run time - setting this system prop has no effect. You could spawn a
new JVM though...
Thank you kindly. Added to my VM start options and all is well.