On Windows
Click on the Start Menu (Windows Icon)
Type in system and click on the System option that appears
On the left hand menu, click Advanced system settings
Click the Environment Variables... button
In the System variables list look for _JAVA_OPTIONS
If it exists:
Click on it to highlight it and then click on Edit
Add -Djava.net.preferIPv4Stack=true to the end of the contents of the Variable value
Click OK
If it doesn’t exist:
Click ‘New’
Enter _JAVA_OPTIONS into Variable name
Enter -Djava.net.preferIPv4Stack=true into Variable value
Click OK