Geyser icon indicating copy to clipboard operation
Geyser copied to clipboard

How to make Geyser to listen to ipv6?

Open hb9eue opened this issue 1 year ago • 1 comments

What feature do you want to see added?

The vanilla Java Server listens to ipv6 and ipv4. Java Clients preferably connect with Ipv6 and this works well.

After installing Geyser to allow Bedrock Clients to connect to my server, those fail to connect using the hostname which of course nowadays always point to dualstack ip addresses.

Using only ipv4 works.

Digging into the issue seems to show that Geyser only listens to IPv4 0.0.0.0 so I changed this to the more modern IPv6 notation "::" to tell it to listen to ANY IP Address.

bedrock:
  # The IP address that will listen for connections.
  # There is no reason to change this unless you want to limit what IPs can connect to your server.
  address: ::
  # The port that will listen for connections
  port: 19132

But the config parser does not like that notation. From the FAQ I read, that Geyser supports IPv4 and IPv6, but I fail to find any information how to make it listen on IPv6.

Please advise.

-Benoit-

Are there any alternatives?

nope

hb9eue avatar Aug 20 '22 07:08 hb9eue

We don't actively test IPv6 unfortunately, but last we checked I believe 0.0.0.0 worked for IPv4 and IPv6? Of course I could be wrong though.

Camotoy avatar Aug 23 '22 03:08 Camotoy

from https://github.com/GeyserMC/Geyser/issues/3547: You can set address to 0:0:0:0:0:0:0:0 to make Geyser listen to ipv6. However, Geyser wont listen on both ipv4 and ipv6 simultaneously; see the issue above for details. Thanks anyway!

onebeastchris avatar May 21 '23 21:05 onebeastchris

in case of chris's idea, you have to use ipv6 in a seperate port UDP 19133(Recommended) using Geyser-Standalone. if you want to let geyser listen to both ipv6 and ipv4, do the following:

  1. make Geyser-Standalone listen to IPv6:19133
  2. make Geyser-[PLUGIN] listen to IPv4:19132. you should Copy Your key.pem from floodgate folder and copy to your Geyser-Standalone directory. you might as well use Geyser in Server Directory. or
  3. Make Geyser-Standalone listen to IPv4:19132
  4. Make Geyser-[PLUGIN] listen to IPv6:19133. you should Copy Your key.pem from floodgate folder and copy to your Geyser-Standalone directory. you might as well use Geyser in Server Directory. i tested this with My own server software and it works. Consider Using both of Plugin and Standalone Version Of Geyser. if you are using floodgate, copy the keys to geyser folder. Consider running Server and Proxy in the same folder. for server address part(java server), for plugins, set to auto and for standalone put your server address. for auth-type, install floodgate and keep it online for plugin, and set it to floodgate and copy key on standalone folder.

Outfit8TSB avatar Jun 19 '24 03:06 Outfit8TSB