mojira.dev
MC-255720

IPv6 not working when IPv4 is not available

Hi, I am hosting a minecraft server on my pc which only has a DSLite connection.
I have port forwarding enabled and the server is reachable via its ipv6 address.

Instead of entering the IP address, I have bought a domain where the AAAA-Record points to my ipv6 address. I also have a srv record pointing to the correct port.

Since I don't have a static ipv4 address, I chose the ipv4 address from my other server, which is hosted elsewhere, for the A-Record.

The SRV Record doesn't work, when only ipv6 is available, it seems like minecraft only tries to connect via ipv4, without ever trying to connect via ipv6.

I know this because if I change the SRV record to point to the port of the other (ipv4) server, it suddenly works, but if I change it back, it is broken again.

 

[media]

Linked issues

Attachments

Comments 2

This seems like a technical support issue, instead of a specific bug with the game. The bugtracker can't deal with tech support, so I recommend instead heading to the Minecraft Community Support Discord server, where volunteers can assist you.

> Since I don't have a static ipv4 address, I chose the ipv4 address from my other server, which is hosted elsewhere, for the A-Record.

 

This is your error. The IPv4 is not available. And because of the issue in MC-255735 Minecraft only tries connecting to one of the addresses (the A record I.E. the IPv4). But as you say your server is only running behind the IPv6 address.

Minecraft only connects to the first IP returned by DNS. So if you delete the A-Record (so that that name only has the AAAA one) it'll work.

 

Also just a note, you don't need to have an A-record that is pointed somewhere. Just don't configure it when your server has no IPv4. And even once MC-255735 is solved this configuration would be incorrect. What you would have to do is either have a dual-stacked server (I.E. one that is available via IPv4 AND IPv6) or not have the A-Record in the first place.

 

(And just FYI, a SRV Record is something completely different 😉 )

Nikolaj Kappler

(Unassigned)

Confirmed

Networking

1.19.2

Retrieved