ptitSeb / box64

Box64 - Linux Userspace x86_64 Emulator with a twist, targeted at ARM64 Linux devices
https://box86.org
MIT License
3.73k stars 267 forks source link

Minecraft bedrock server not lan-discoverable #1343

Closed rcmoody closed 6 months ago

rcmoody commented 6 months ago

When running minecraft's official bedrock server for linux on raspberry pi (I'm using specifically the pi 4 model b) through box64, the server is not discoverable by clients under the friends tab.

It does appear however if I run natively on x64 hardware or if I use an alternative bedrock server such as nukkit, leading me to conclude this is an issue with box64.

I am able to connect to the server directly, it just doesn't appear under LAN worlds. Is it possible that box64 is not handling multicast packets properly?

ptitSeb commented 6 months ago

Box64 should support it, but there might be some missing wrapped function or some struture needed some alignment between arm64 and x86_64 world.

Do you have more details on how bedrock server is doing it's network request?

rcmoody commented 6 months ago

It looks like minecraft bedrock uses the RakNet protocol. It is actually the client that broadcasts a message and the server that responds to it. However in this case the server simply isn't responding but the pi is indeed receiving the broadcast packets.

rcmoody commented 6 months ago

I ended up discovering that the reason my server was not discoverable under the friends tab was because I had already setup a direction connection under the servers tab which apparently precludes the former.