Minecraft does not use or event try to connect to IPv6 servers, even if there is a correct and working AAAA record. According to Java documentation this is a default behaviour which can be changed through java.net.preferIPv6Addresses system property. It's a bad setting for the future to continue using IPv4 when IPv6 is available. Minecraft should prefer IPv6 wherever possible.
Linked issues
is cloned by 1
Comments 30
According to http://en.wikipedia.org/wiki/IPv6_brokenness_and_DNS_whitelisting :
> As of May 2011, IPv6 brokenness as measured by instrumenting a set of mainstream Norwegian websites was down to ~0.015%
So you prefer IPv4 because of those 0.015%?
Now a lot of systems have latent IPv6 via Teredo, and you should of course prefer IPv4 on those, but you should not always prefer IPv4 IMO.
I also don't know anyone with a "broken" IPv6 stack but many with truly native IPv6 connections through cable internet. If 0.015% can't connect, those 0.015% should fix their network settings.
> This is why we opted eons ago to prefer ipv4.
Time for a change. Eons ago is not today!
A quick Google search lead to my conclusion that a mere 1.3% (http://www.google.com/ipv6/statistics.html) of people use IPv6 (that's within the tenths and even hundredths of a percent for some countries! http://meetings.ripe.net/ripe-57/presentations/Colitti-Global_IPv6_statistics_-_Measuring_the_current_state_of_IPv6_for_ordinary_users_.7gzD.pdf). It's either that, or everyone who uses it uses Yahoo or Bing.
It's truly a tiny number of people looking at that. Thue is making his stand on the principle that you shouldn't appeal to the minority, which is completely valid and true. However, you can't make that claim when you yourself are the minority.
IPv4 is incompatible with IPv6, making the matter worse. Would an IPv4 user be able to connect to an IPv6 server? I doubt it.
So could Minecraft connect or at least make it an option? Yes, probably. Is it a major issue that affects a large amount of the player database? Not really.
@Neospector:
The statistics from Google shows that the rate is growing exponentially.
Minecraft servers are often used by people from a single country. So for servers in France, Germany or Romania it's a much larger topic than for those in the Netherlands or Sweden.
Minecraft servers should use dual stack and setting up DNS records for IPv4 and IPv6. Clients should decide which connection to use. So with a native IPv6 connection they would use IPv6, else IPv4.
Having a broken IPv6 stack means that attempting to connect through IPv6 doesn't work, either because a driver on the stack is poorly written or misconfigured. Fixing it isn't always as simple as just changing a few settings. Most software will simply use the IPv4 stack instead, if both are available.
Yes, sorry, I sort of mixed up two issues; not preferring IPv6 by default is not unacceptable. Completely disabling IPv6 is an issue, because you assume that all users have IPv4 connectivity. But that's what MC-3776 is about, and this issue is just about preference, so I'll just shut up here and limit that discussion to the proper issue. Sorry for the noise.
[Mod] Torabi wrote
> Fixing it isn't always as simple as just changing a few settings.
If your IPv6 connectivity is broken, then just turn it off locally. It is as simple as changing a few settings: http://www.techunboxed.com/2012/08/how-to-disable-ipv6-in-windows-8.html
Forcing people with broken IPv6 connectivity to turn it off locally is soooo much more correct than breaking Minecraft for IPv6.
Now, 8 years later in 2021, i think it is worth revisiting this topic... Minecraft should really start to prefer ipv6 when joining servers sometime soon.
When this bug was opened, Minecraft did not prefer IPv6. After Microsoft purchased Mojang, IPv6 support was removed completely, and it won't return anytime soon, as bad as that is. Microsoft is an enemy of IPv6. None of their services is available via IPv6. Microsoft does not adopt new technology unless they are absolutely forced to.
Sadly many people have broken ipv6 stacks running on their system and they break when you try to use them. This is why we opted eons ago to prefer ipv4.