CraftyEyeballs

CraftyEyeballs

Proper IPv6 support for Minecraft

by
367 Downloads
fabricutility
Rent Server with this Mod

About this Mod

CraftyEyeballs

It's been more than ten years since the world has run out of IPv4 addresses and internet providers are finally starting
to offer full IPv6. While the transition is progressing painfully slowly, progress is being made and more and more
services are reachable over just IPv6 every day. Minecraft servers, however, are still stuck on IPv4.

The main reason for this is that Mojang's IPv6 implementation is broken.
Normally, when a service is reachable over IPv4 and IPv6 (dual-stack), the client will try to connect to both addresses
and use the first one that responds (preferring IPv6). However, Minecraft's client will only try to connect to the first
address it can find, which is usually the IPv4 address. This means that if a server is reachable over both IPv4 and
IPv6, the client will always connect over IPv4, even when only IPv6 is available. CraftyEyeballs solves this problem!

CraftyEyeballs is a mod that changes the way the Minecraft client connects to servers to
the Happy Eyeballs algorithm. This means that the client will now try
to connect to both IPv4 and IPv6 addresses and use the first one that responds. This way, the client will prefer IPv6
over IPv4 when both are available, allowing servers to gradually transition to IPv6 without losing their IPv4 clients or
having to set up a separate hostname for IPv6-only players to connect to.

This mod is client-side only. It will do nothing on a server.

Frequently Asked Questions

What are the advantages for server owners?

Providers with a small amount of IPv4 address space will be forced to use NAT to allow multiple users to share a single
IPv4 address. This can cause multiple people, even in separate households, to share the same public IPv4 address. When
moderating for ban evasion and the usage of alternate accounts, this can cause issues. With IPv6, every end user
(household) gets its own subnet, preventing the issues shared IPs can bring.

But almost no servers support IPv6!

That is true, but it's also a bit of a chicken-and-egg problem. Servers don't bother implementing IPv6 because Mojang's
implementation prefers IPV4. If more clients start using a proper IPv6 implementation, servers will have more incentive
to support it.

What happens when this mod is installed, but I don't have IPv6?

If your computer has no (or broken) IPv6 connectivity, the connection via IPv4 will be preferred since it connects the
quickest (since the IPv6 connection never connects).

Can I include this mod in my modpack?

Yes!

Available Versions

CraftyEyeballs 1.0.0release
MC 1.20.4fabric
February 6, 2024

How to Install CraftyEyeballs on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.4).

3

Install Mod

Open the mod browser in the dashboard and search for "CraftyEyeballs". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.20.4

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

CraftyEyeballs server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.4). You can switch loaders with one click in the panel.

Is CraftyEyeballs compatible with fabric?

CraftyEyeballs officially supports fabric for Minecraft 1.20.4. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with CraftyEyeballs – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if CraftyEyeballs consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install CraftyEyeballs with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Unsupported

Supported Versions

1.20.4