Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small fix for IPV6 only + DDNS Server #376

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

BigBoyPro
Copy link

Hello,
My ISP only lets me use IPV6 for my server with my friends and i wanted to setup a DDNS hostname so i can update the IPV6 address seamlessly for my friends, but since the DDNS is always both an IPV4 and an IPV6 record and never IPV6 only i have to use the -Djava.net.preferIPv6Addresses=true Java argument since Minecraft always defaults to the IPV4 address (which is blocked) without it.

But then the Launcher doesn't work because of the use of localhost (that defaults to ::1 in IPV6) instead of 127.0.0.1 in the
launcher/minecraft/auth/providers/LocalAuthProvider.h used for the authlib injector's authentication server.

Fixed the two line of code and rebuilt the project to test and now it works perfectly, hope this will end up in an update!
Thank you.

… to 127.0.0.1 to accomodate people who want to use the -Djava.net.preferIPv6Addresses=true Java argument to play on IPV6 in priority because localhost defaults to ::1 in IPV6 mode and crashes the game on launch
@Neptune650 Neptune650 merged commit 0b9bfc9 into UltimMC:develop Aug 26, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants