[MC-2507] Entering IPv6 servers crashes the client Created: 08/Nov/12  Updated: 24/Dec/14  Resolved: 08/Nov/12

Status: Resolved
Project: Minecraft: Java Edition
Component/s: None
Affects Version/s: Minecraft 1.4.2
Fix Version/s: Minecraft 1.4.5

Type: Bug
Reporter: ven000m Assignee: Unassigned
Resolution: Fixed Votes: 1
Labels: ipv6

Attachments: PNG File mc1.png     PNG File mc2.png    
Issue Links:
Duplicate
is duplicated by MC-1603 Server Connection Error Resolved
is duplicated by MC-2130 Server connect crash Resolved
is duplicated by MC-2149 Client crash when connecting to crash... Resolved
Relates
relates to MC-3776 IPv6 Does Not Work Resolved
Confirmation Status: Unconfirmed

 Description   

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


 Comments   
Comment by ven000m [ 24/Dec/14 ]

Is this fixed yet?

Comment by Hugo Osvaldo Barrera [ 16/Jun/14 ]

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

Comment by Ferdinand B. [ 17/Nov/12 ]

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

Comment by ven000m [ 17/Nov/12 ]

Well, i tried it! Not working

Comment by Ferdinand B. [ 17/Nov/12 ]

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

Comment by Ferdinand B. [ 17/Nov/12 ]

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

Comment by ven000m [ 17/Nov/12 ]

So whats the correct format for this?

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

default port

Comment by Ferdinand B. [ 17/Nov/12 ]

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>)

Comment by ven000m [ 17/Nov/12 ]

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.

Comment by Joel Paulien [ 10/Nov/12 ]

If your network interface supports it, yes.

Comment by ven000m [ 08/Nov/12 ]

Thank you.

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

Comment by [Mojang] Grum (Erik Broes) [ 08/Nov/12 ]

Fixed.

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

Comment by ven000m [ 08/Nov/12 ]

Oh, k.

Im under Windows 8, 64bit.

Comment by Lorenz Brun [ 08/Nov/12 ]

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.

Comment by ven000m [ 08/Nov/12 ]

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.

Comment by Talven81 [ 08/Nov/12 ]

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.

Comment by ven000m [ 08/Nov/12 ]

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/
Comment by Smanly [ 08/Nov/12 ]

IPv6 addresses contain brackets?

Generated at Sun Jan 12 11:58:05 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.