mojira.dev
MC-2507

Entering IPv6 servers crashes the client

When i'm trying to add a IPv6 Server, i cant click on "save".
(Screenshot 1, mc1.png)

When i'm trying to connect directly to the IPv6, i get as response:
"java.net.SocketException: Protocol family unvailable"
(Screenshot 2, mc2.png)

Sometimes it crashes while trying to use IPv6:

---- Minecraft Crash Report ----
// Ooh. Shiny.

Time: 08.11.12 17:34
Description: Unexpected error

java.lang.NullPointerException
	at aww.a(SourceFile:57)
	at ayt.b(SourceFile:755)
	at net.minecraft.client.Minecraft.J(SourceFile:604)
	at net.minecraft.client.Minecraft.run(SourceFile:534)
	at java.lang.Thread.run(Unknown Source)

Relevant Details:
- Minecraft Version: 1.4.2
- Operating System: Windows 8 (amd64) version 6.2
- Java Version: 1.7.0_09, Oracle Corporation
- Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
- Memory: 489391232 bytes (466 MB) / 524550144 bytes (500 MB) up to 954466304 bytes (910 MB)
- JVM Flags: 2 total; -Xms512m -Xmx1024m
- AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
- LWJGL: 2.4.2
- OpenGL: ATI Radeon HD 3870 X2 GL version 3.3.11653 Compatibility Profile Context, ATI Technologies Inc.
- Is Modded: Probably not
- Type: Client
- Texture Pack: Default
- Profiler Position: N/A (disabled)
- Vec3 Pool Size: ~ERROR~ NullPointerException: null

Related issues

Attachments

Comments

migrated
[media][media]
migrated

IPv6 addresses contain brackets?

migrated

Yep, as for example to a IPv6 Webside, you have to enter

http://[2001:41d0:8:4f96::1]/

instead of

http://2001:41d0:8:4f96::1/

migrated

Similar related issue found on MCForums

Basically, if you add a server using a hostname (minecraft.example.org) that has an AAAA record, it will add it successfully. If you try adding it using the IP it doesn't work. When you type in the IP, the 'Add' button is greyed out.

Using the 'Direct Connect' button works fine with an IPv6 formatted address.

migrated

So, i was trying to connect over a IPv6 AAAA Record Domain:

minecraft.pauschi.de [2001:41d0:8:4f96::1]

Getting a "Can't resolve hostname" response.

When im using chrome, the website works.

migrated

On Linux (Ubuntu 12.10 64bit) with IcedTea (OpenJDK) "Direct Connect" works, but "Add Server" doesn't.

The direct connect issue seems to be in Sun Java, the add server one in the Minecraft code.

migrated

Oh, k.

Im under Windows 8, 64bit.

Erik Broes

Fixed.

The 'protocol family unavailable' is just what it says; you cannot make outgoing ipv6 connection without having an interface support it.

migrated

Thank you.

So in the newer version (1.5+), i can use IPv6 to connect to minecraft Servers right?

alphablend

If your network interface supports it, yes.

migrated

Hello.

Downloaded the 1.4.5 Client.
Still unable to connect to Minecraft Server over IPv6, but all other IPv6 Services (IRC, HTTP) working well.

migrated

IPv6 Ips contain brackets to distinguish between the :s from the Ip adress (e.g.: 1337:21db:6:9000::e) and the Port identifier (:<enter-port-here>)

migrated

So whats the correct format for this?

2001:41d0:8:4f96::1

default port

migrated

I think it's [2001:41d0:4f96::1]

migrated

add, [-brackets around it. Mojira made a link out of my brackets

migrated

Well, i tried it! Not working 😞

migrated

okay, I don't know the exact syntax. I just thought it might have been like that.
Learning by doing. Know we know that it doesn't work like that

migrated

IPv6 addresses usually jus take the format of 2001:41d0:4f96::1. The brackets generally only are used when specifying a port, ej: [2001:41d0:4f96::1]:59382

migrated

Is this fixed yet?

migrated

(Unassigned)

Unconfirmed

ipv6

Minecraft 1.4.2

Minecraft 1.4.5

Retrieved