Minecraft Version: 1.8-1.20.X
Forge Version: All (Tested on 49.0.27, 11.14.4.1577 and some others)
Steps to Reproduce:
Setup a server with IPV6 only
Setup a docker container with forge
Try to connect to the Forge Server
Description of issue:
Hello,
I am reaching out to seek your expertise within this forum to clarify a technical situation I am encountering, suspecting a potential issue related to Forge in a Docker environment, specifically in an IPv6 context.
Initial Configuration: Debian 12 server, configured exclusively for IPv6, with Docker installed. Using the Docker image ghcr.io/pterodactyl/yolks:java_17, launching a Minecraft Vanilla server version 1.20.4 proceeds without any issues.
Problem: The issue arises when deploying a Minecraft Forge server version 1.20.4 with the same Docker image (ghcr.io/pterodactyl/yolks:java_17), where connecting to the server becomes impossible. Notably, this issue does not occur when launching outside of Docker, where the server functions as expected.
Hypothesis: This situation leads me to question the interaction between Forge and Docker, particularly in an IPv6-only configuration, despite several resolution attempts (testing with different versions of Forge, adjusting container network configurations (0.0.0.0, ::/0, and the server's ipv6), trials with various network settings, and modifications of Java options).
Further testing was conducted with and without the use of the Pterodactyl game panel, unsuccessfully. The parameter
-Djava.net.preferIPv4Stack=false
also did not provide a solution.
I tried to do the same things on multiple Minecraft server (include vanilla,spigot,fabric,sponge) and this work fine. The problem only happend with Forge.
This issue seem to happend on all forge versions.
I appreciate your time and assistance in advance.