if you are already launching via such a command or script you should just be able to add:
-Djava.net.preferIPv4Stack=true"
Just add it directly before -jar or -cp, which ever is relevant.
EDIT:
If this does fix it, the issue is that oracle/sun have defaulted a preference for IPv6 over IPv4 in java 7. If IPv6 is not present then it'll automatically attempt IPv4 but the problem is many computers have IPv6 enabled but not configured and this leaves Java in a position where it is unable to communicate over the Internet, rather literally.
Awesome, fixed it for me. Interesting that the problem lies with java wanting to use the IPv6 instead of IPv4. A permanent way to fix this is to just uninstall the IPv6 protocol in your adapter settings of anyone else having this problem in which this is the fix.
Thank you Wolfman545, but the problem is not just a fluke connection. The error being thrown is a Socket error which implies it has something to do with my side. I don't understand how because I have removed everything from inbetween Minecraft and the internet but with no luck. My thinking now is it is a problem with either the launcher code or with the java I have installed.
Whenever I open the launcher, all I can get is a screen with:
<html><body><font color="#808080"><br><br><br><br><br><br><br><center>Failed to update news<br>java.net.SocketException: Invalid argument: connect</center></font></body></html>
Its as if the launcher can't connect to the interwebs. I have done everything as far as firewall goes but am still having a problem. I have done complete uninstalls of Minecraft and run newly downloaded copies of the executable but still to no avail. I have seen the workaround for it by downloading the newest update through the play in browser function, but this hasnt a thing to do with the launcher but the actual physical game itself. I wouldnt mind this if I wanted to play only offline, but I would muchly prefer to play on my server which requires Java to be able to connect to the port. Please Help.
0
Awesome, fixed it for me. Interesting that the problem lies with java wanting to use the IPv6 instead of IPv4. A permanent way to fix this is to just uninstall the IPv6 protocol in your adapter settings of anyone else having this problem in which this is the fix.
Much thanks r3sistance!
0
0
Its as if the launcher can't connect to the interwebs. I have done everything as far as firewall goes but am still having a problem. I have done complete uninstalls of Minecraft and run newly downloaded copies of the executable but still to no avail. I have seen the workaround for it by downloading the newest update through the play in browser function, but this hasnt a thing to do with the launcher but the actual physical game itself. I wouldnt mind this if I wanted to play only offline, but I would muchly prefer to play on my server which requires Java to be able to connect to the port. Please Help.