CraftyEyeballs
自 IPv4 地址耗尽已有十余年,而互联网服务提供商(ISP)终于开始提供完整的 IPv6 支持。尽管过渡过程进展缓慢,但进步正在发生,每天都有越来越多的服务可以通过纯 IPv6 访问。然而,Minecraft 服务器仍然受限于 IPv4。
造成这一情况的主要原因是 Mojang 的 IPv6 实现存在缺陷。通常情况下,当一个服务同时支持 IPv4 和 IPv6(双栈)时,客户端会尝试连接两个地址,并使用第一个响应的地址(优先选择 IPv6)。然而,Minecraft 客户端只会尝试连接它能找到的第一个地址,通常是 IPv4 地址。这意味着,如果一个服务器同时支持 IPv4 和 IPv6,即使仅提供 IPv6 连接,客户端也始终会通过 IPv4 连接。CraftyEyeballs 解决了这个问题!
CraftyEyeballs 是一个模组,它将 Minecraft 客户端连接服务器的方式更改为 Happy Eyeballs 算法。这意味着客户端现在会同时尝试连接 IPv4 和 IPv6 地址,并使用第一个响应的地址。这样,当 IPv4 和 IPv6 都可用时,客户端将优先使用 IPv6,使服务器能够逐步向 IPv6 过渡,而不会失去其 IPv4 客户端,也无需为仅支持 IPv6 的玩家设置单独的域名进行连接。
此模组仅限客户端使用。在服务器上安装无效。
常见问题
对服务器所有者有什么好处?
拥有少量 IPv4 地址空间的提供商将被迫使用 NAT(网络地址转换),以允许多个用户共享单个 IPv4 地址。这可能导致多个用户(甚至来自不同家庭)共享同一个公共 IPv4 地址。在进行封禁规避检测和 alternate accounts(小号)使用时,这可能会引发问题。而在 IPv6 下,每个终端用户(家庭)都会获得自己的子网,从而避免共享 IP 带来的问题。
但几乎没有任何服务器支持 IPv6!
确实如此,但这也有点像“鸡生蛋,蛋生鸡”的问题。由于 Mojang 的实现优先偏好 IPv4,服务器缺乏实施 IPv6 的动力。如果更多客户端开始采用正确的 IPv6 实现,服务器将会更有动力去支持它。
如果我安装了此模组但没有 IPv6 怎么办?
如果您的计算机没有(或存在故障的)IPv6 连接,IPv4 连接将被优先使用,因为它能更快建立连接(因为 IPv6 连接永远无法接通)。
我可以将此模组包含在我的整合包中吗?
可以!
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!
评论 0
登录后参与评分
还没有评论,来抢沙发吧