Skip to content

How-To configure IPv6-only #2889

Answered by Chem0908
Chem0908 asked this question in Q&A
Jun 10, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

I got some new infos. The JAVA_TOOL_OPTIONS was not the problem. It seems that there was realy an underlaying networking problem which i can fixed with the following configurations:

compose.yaml

services:
  mc:
    image: itzg/minecraft-server
    tty: true
    stdin_open: true
    ports:
      - "[::]:25566:25566"
    environment:
      EULA: "TRUE"
      TYPE: PURPUR
      VERSION: 1.20.6
      SERVER_PORT: 25566
      JVM_DD_OPTS: java.net.preferIPv6Addresses=true
    volumes:
      # attach the relative directory 'data' to the container's /data path
      - ./data:/data
    networks:
      mc_default:
        ipv6_address: fd00:2::2 # Replace with your desired IPv6 address
networks:
  

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@itzg
Comment options

@Chem0908
Comment options

@itzg
Comment options

@Chem0908
Comment options

Answer selected by Chem0908
@Chem0908
Comment options

@itzg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants