What is the Proxy Protocol? The Proxy Protocol provides a way for your server to receive your client’s true IP. {.green}
The configuration file for GeyserMC can be difficult to find. If you have GeyserMC installed as a plugin, the configuration should be located at ./plugins/Geyser-Spigot/config.yml
. Change the value of bedrock.enable-proxy-protocol
from false
to true
.
It’s not much use using the Proxy Protocol in GeyserMC if that data isn’t forwarded to your Java Server. For an example on how to setup PaperMC see Setup Proxy Protocol in PaperMC
. We also need to tell GeyserMC to forward the client IP information to your Java Server. This can be done by editing the config file again and setting the value remote.use-proxy-protocol
from false
to true
.
Navigate to your tunnel on playit.gg. Down the page you should find the attribute “Proxy Protocol” with a button to change.
Change the protocol to Proxy Protocol Version 2
.
Now when you connect, the true client IP should be provided to your server. If it’s not working, make sure you’re using the latest version of the playit program. Support for the proxy protocol was added in version 0.15.26
.