Sponge and IPv6

Created on 22 Aug 2016  路  15Comments  路  Source: SpongePowered/Sponge

Does Sponge support IPv6 at this time?
https://forums.spongepowered.org/t/sponge-and-ipv6/14296

Most helpful comment

@Leeo97one If you need a fix for this issue, install https://github.com/Minecrell/ipv6fix/releases as plugin on your server (requires SV 102+ (tested) or SF (untested)). That should fix the error you posted here in this issue and also the MC issue @heni123321 created.

All 15 comments

https://forums.spongepowered.org/t/sponge-and-ipv6/14296

Judging by the error you posted it seems the problem is more that vanilla MC does not support IPv6, which is unfortunate. We could potentially mixin to fix these issues, however I imagine there'd be many potential places where IPv6 compat might break.

I've no problem with vanilla Minecraft and IPv6. I can connect easily in IPv4/6 with a vanilla server. Otherwise I would never have opened this issue.

ah, my mistake. I just looked and indeed it's our code throwing the exception. Oops :3

However there are still parts of the game that aren't build for IPv6, such as the ban-ip command.

No problem ^^
It's right that I haven't tested such commands with IPv6. I'll try.

/ban-ip don't work with ipv6 i have created https://bugs.mojang.com/browse/MC-97885 for the problem, but I haven't heard anything from mojang

Yes, this error is actually also caused by https://bugs.mojang.com/browse/MC-97885 (to be exact, the first comment in that issue) since Minecraft attempts to check if the first two bytes of the IPv6 address are banned. However the first 4 characters are not actually a valid IPv6 address so it fails because Sponge depends on resolving the IP address.

E.g. with ::1 (or expanded 0:0:0:0:0:0:0:1) Minecraft gives 0 to Sponge which is not a valid IPv6 address.

OK, thanks for explanation!

@Leeo97one If you need a fix for this issue, install https://github.com/Minecrell/ipv6fix/releases as plugin on your server (requires SV 102+ (tested) or SF (untested)). That should fix the error you posted here in this issue and also the MC issue @heni123321 created.

@Minecrell I'll try, thank you very much!

@Minecrell

This needs to make its way into the Sponge core mixin plugin please.

@Zidane Sure, I can move it once @Leeo97one can confirm that it fixes his problem.

@Minecrell It fixed the MC issue i linked

@Minecrell So, I've test it with SpongeVanilla 1.10.2-5.0.0-BETA-102 and everything is working well. The server start, I can connect and ban-ip with IPv6 (the IP is stored properly). Good job 馃憤

@Leeo97one @heni123321 Would you mind testing this again with SpongeVanilla 103? This time, the plugin should be no longer needed.

@Minecrell SpongeVanilla 103 works without plugin thank you

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JoeSGT picture JoeSGT  路  5Comments

Grinch picture Grinch  路  4Comments

DarkArc picture DarkArc  路  3Comments

jeffreykog picture jeffreykog  路  4Comments

Eufranio picture Eufranio  路  4Comments