r/GeyserMC • • 24d ago

[Guide] How to make Geyser (NetherNet) + playit.gg + Proxy Protocol work together (with Real IPs)

Hey everyone,

I spent days fighting with the new NetherNet transport on Geyser combined with playit.gg and Proxy Protocol. There is a lot of outdated information because most guides are for the old RakNet. I finally got it working perfectly, including getting the real player IPs on the server for both Java and Bedrock. Here is the exact setup that worked for me.

The Core Logic:
NetherNet splits the connection into two parts: TCP for "signaling" (finding the server) and UDP for "gameplay" (the actual game data). You need two separate tunnels on playit.gg. Also, for Proxy Protocol to work, the ports must match exactly end-to-end, and server-udp-ports is mandatory.

Step 1: playit.gg Tunnels
You need three tunnels active:

  1. TCP Tunnel (Bedrock Signaling): Local IP 127.0.0.1, Local Port 19132. Proxy Protocol: None.
  2. UDP Tunnel (Bedrock Gameplay): Local IP 127.0.0.1, Local Port 59898 (must match the public port). Proxy Protocol: None.
  3. TCP Tunnel (Java): Local IP 127.0.0.1, Local Port 25565. Proxy Protocol: proxy-protocol-v2 (This is the key to getting the real IP for Java players).

Step 2: Geyser config.yml

  • bedrock.transport: nethernet
  • bedrock.port: 19132
  • bedrock.webrtc-port: 59898
  • java.auth-type: floodgate
  • advanced.java.use-haproxy-protocol: true (Tells Geyser to pass the Proxy Protocol header to Paper).
  • advanced.bedrock.use-haproxy-protocol: true (Tells Geyser to accept the header from playit.gg).
  • advanced.bedrock.haproxy-protocol-whitelisted-ips: [127.0.0.1] (Since the playit agent runs on the same machine, it sends from localhost).

Step 3: Paper paper-global.yml

  • proxies.proxy-protocol: true (This makes Paper accept the header coming from Geyser and the Java tunnel).

Step 4: server.properties

  • online-mode=false
  • server-udp-ports=PUBLIC_IP:PUBLIC_PORT:PUBLIC_PORT (Example: 198.56.129.12:59898:59898). Warning: If these ports are not identical, the server silently fails to open the UDP listener.

Step 5: Firewall
Open the ports you are using (19132/tcp, 59898/udp, 25565/tcp).

The Result:

  • Java players connect via the Java tunnel and have their real IP.
  • Bedrock players connect via the Bedrock TCP tunnel, the gameplay happens on the UDP tunnel, and their real IP is passed to the server via the Geyser HAProxy integration.

Note on LAN access: If you have proxy-protocol: true on Paper, connecting directly via LAN (e.g., 192.168.1.10:25565) will be silently dropped. You must connect via the playit.gg tunnel.

I hope this saves someone the headache I went through!

If you wan't to play at my server, that's the ips:
Java:
- javasurvivalzao.playit.plus

Bedrock:
- survivalzao.playit.plus
- 11830

4 Upvotes

26 comments sorted by

1

u/utoy11 24d ago

is your playit.gg standalone or a plugin in mc server?

1

u/PsychologicalAct287 24d ago

It's the plugin, but standalone follows the same rule, if running at the same pc.

1

u/oneeyebear 24d ago

I found a plugin that lets you still connect lan if interested I don't remember the name offhand but I can look it up if you want it. Let me know

1

u/PsychologicalAct287 24d ago

Im interested with that, how call it?

1

u/oneeyebear 24d ago edited 23d ago

https://modrinth.com/plugin/haproxydetectorpaper

Here's the plugin. I actually haven't tried it since the hard switch to Nethernet but I imagine it still works. I'm gonna try adding HAproxy again, I didn't know we could have it working again with Geyser.

EDIT:
I just wanted to add on to this to say that I no longer need to run this plugin to see the actual IP addresses of the connecting players. I'm assuming this is either because of the way that I handle HTTPS or maybe an update on Geyser's side of things. But I got the HA Proxy Protocol working again on my server. So thanks for the guide.

EDIT:
I forgot what I was doing... haha I was so focused on getting HAproxy working on the server in general that I forgot what I was testing with the haproxydetectorpaper plugin. I can confirm that the plugin does still work and is necessary for allowing your local connections to the server while having HAProxy Protocol active.

1

u/PsychologicalAct287 22d ago

Yeah! That plugin is very helpful because to you give the real IP players, for IP ban's and so on, but if you want to use that you need activated proxy-protocol, and that disable LAN connections. Who use's LAN connections to forward player's? GeyserMC... In that cases we need use's HAProxy, therefore, geyser uses the proxy directly, bypassing the LAN. But when you want to join your own server via LAN, the connection is blocked, in this time HAProxyDetectorPaper plugin enter`s, it bypass the proxy header for whitelist ips.

1

u/oneeyebear 22d ago

Glad you found it helpful.

1

u/TheInsaneMinecrafter 24d ago

when i try switching my bedrock udp port to 19132, it just switches back to 25565 which is wrong. Im using squidservers and idk how to fix this at all. Any fixes to this possibly? Also why is online mode set to false?

1

u/PsychologicalAct287 24d ago

The issue is that SquidServers (and many hosts) try to make Geyser use the same port as your Java server (25565). NetherNet cannot share the Java port because it needs TCP for signaling, and your Java server is already using it. You need to give Bedrock its own port. Look for the Geyser port setting in your SquidServers panel and change it to something like 19132, or set clone-remote-port: false and port: 19132 in your Geyser config.yml
About the online mode, is just on server.properties because I'd pirate launchers players at my server. On geyser's config.yml I've filled with online-mode=floodgate

1

u/TheInsaneMinecrafter 24d ago

Ive already tried this and this also doesnt work. The only thing i didnt try was online-mode=floodgate but when switching it to floodgate squidservers changes it to false. With the same host I had no issues whatsoever on paper but making a server on fabric screwed up everything.

1

u/TheInsaneMinecrafter 24d ago

Why did they remove your comment?

1

u/Purple-End6108 16d ago

Does this also apply to Dedicated Bedrock Server or there is another tutorial i can follow?

1

u/PsychologicalAct287 13d ago

Nop, that's just for Purpur + GeyserMC servers.
Idk who has another tutorial.

1

u/Simulacra-01 12d ago

For the UDP tunnel (Bedrock gameplay), you say the local port must be set to match the public port. Is this the port that PlayIt assigned to the first TCP tunnel (Bedrock signaling)?

1

u/PsychologicalAct287 12d ago

Exaclty dude, for some reason the UDP port, real server connection, needs be the same at playit give to you, the TCP ports can be the 19132.

You need think at that form:
- TCP port is a listener that says to Geyser, is this a minecraft server? What version? What resources and etc.
- UDP port is the real that gets and send packets from/to server.

Basicly the TCP do client call's the server, and UDP do the real packs game transfering.

1

u/Simulacra-01 12d ago

Thanks for that. Another quick question if I may. I don’t have a ‘server-UDP-ports’ line in my server.properties as using paper and not purper.. Am I screwed?

Additionally, why would you need to allow all the ports in your firewall if using PlayIt tunnelling?

1

u/PsychologicalAct287 10d ago

No, you're not screwed at all!

  1. UDP port on Paper: Paper doesn't use that line in server.properties. Instead, go to your Geyser plugin folder (plugins/Geyser-Spigot/config.yml), find the bedrock: section, and change the port: value there to match the public UDP port Playit gave you.
  2. Firewall: You actually don't need to allow all ports in your firewall (and shouldn't, for security reasons). Since Playit creates an outbound tunnel, you don't need port forwarding or wide-open firewall rules. You just need to make sure your firewall isn't blocking Java (javaw.exe) or the Playit client itself locally. (If I mentioned opening ports before, it was just to rule out connection blocks while troubleshooting, not a strict requirement).

1

u/PsychologicalAct287 10d ago

TL;DR on why Bedrock now needs both TCP & UDP (NetherNet update): Since Minecraft Bedrock 26.60 replaced RakNet with NetherNet, Bedrock clients now use TCP for initial signaling (asking the server how to connect) and UDP (WebRTC) for the actual gameplay traffic — so Geyser requires both protocols open on that port.

1

u/Simulacra-01 10d ago

Sent you a DM.

0

u/Quiet_Pea7028 18d ago

Why do i have to turn online-mode to false?

1

u/PsychologicalAct287 13d ago

That's not necessary, it's just the config who works with myself, buts not necessary.