infrared icon indicating copy to clipboard operation
infrared copied to clipboard

Minecraft Bedrock/Pocket Edition?!

Open iSilviu-debug opened this issue 3 years ago • 5 comments

How difficult would it be to support Geyser? (Minecraft Bedrock / Pocket Edition) Link: https://geysermc.org/

Thank you! 🌵

iSilviu-debug avatar Apr 02 '21 18:04 iSilviu-debug

It should work, if geyser translates to normal java edition protocol. Your setup should be: [mc clients] -> [geyser proxy] -> [infrared] -> [mc server]

haveachin avatar Apr 05 '21 15:04 haveachin

Seems I discovered Geyser at just the right time! My first thought was infrared, how are you approaching the implementation? Are we talking something as simple as adding 2 separate hosts / ports in the config?

java.exaple.com : 25565 bedrock.example.com : 19132

tdeverx avatar Feb 02 '22 02:02 tdeverx

The core logic is already implemented in the rewrite branch. Infrared only checks the handshake packet and routes the traffic according to the server address. It does not interfere with client-server authentication nor does it listen or decrypt any communication between client and server after the initial handshake. Here is the core implementation for Bedrock https://github.com/haveachin/infrared/tree/rewrite/internal/pkg/bedrock

haveachin avatar Feb 02 '22 02:02 haveachin

You could already test it if you compile the code yourself. There is also a Makefile and a Dockerfile/docker-compose.yml if you know how to use those. But I would only recommend using it for testing purposes.

haveachin avatar Feb 02 '22 03:02 haveachin

Yeah I noticed! But unfortunately, I'm running my containers on Synology and I don't know the first thing about compiling code myself, and that's excluding docker-compose 😂 (I'm relatively new to docker hahaha)

But, if you decide to publish any development branches for testing let me know, I'd be happy to test it out 👍

tdeverx avatar Feb 02 '22 04:02 tdeverx