TheRemote / MinecraftBedrockServer

Sets up a Minecraft Bedrock dedicated server on Ubuntu with options for automatic updates and running at startup

Home Page:https://jamesachambers.com/minecraft-bedrock-edition-ubuntu-dedicated-server-guide/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stuck on "Locating server" in game

e34rrsff opened this issue · comments

I've tried using different devices to connect to the server, and they all get stuck on "Locating server."

Is this on Raspberry Pi or ARM devices as the server?

If so you may want to read https://jamesachambers.com/official-minecraft-bedrock-dedicated-server-on-raspberry-pi/ because it has to use emulation on ARM so this is expected.

A much better version to run on the Pi is the Java version which I have a script for here: https://jamesachambers.com/raspberry-pi-minecraft-server-script-with-startup-service/

I've never seen this happen on a x86_64/amd64 box before so I assume this is an ARM device. Can you confirm?

Yeah, it is an ARM device, and I just remembered it's also 32-bit... there isn't any way for me to run a Bedrock server on it, right? I only have Bedrock edition so that's why I chose this.

Great question. So basically no. The issue is that the C++ "bedrock_server" Linux static x86_64 binary is built by Microsoft. It's a statically built binary built for x86_64. It won't run on 32 bit architecture or the ARM architecture without emulation.

Microsoft releasing ARM binaries would instantly solve the issue. They just have never offered a ARM build for it (the dedicated server at least, obviously there are ARM Minecraft clients and some of those even have some limited server capabilities built in).
Bedrock is native C++ code so when they build that type of a binary it's just a big "blob" of static code and works a lot different than something like the Java version.

Could they build one? Definitely. Probably even as easily as switching a few flags in the compiler and rebuilding it. I wouldn't be surprised if they have non-public ARM dedicated server builds as there are some really high end servers that actually run the ARM architecture and they may be playing with them for their "Realms" backend (speculation on my part for this piece).

I would say it's just a little too slow but maybe the Raspberry Pi 5 will do it. When I wrote it it was completely unplayable. I want to say we were on the 3B+ or maybe even the 2 when I wrote it. Originally you could not even log in if you tried 100 times. Now people can log in and it kind of actually works but monsters move in slow motion and block breaking is laggy, etc.

I think the Raspberry Pi 5 (or another major revision or two of QEMU, the emulation software that makes running this at all possible even at a slow speed) will do it. Most of the people running this now are on x86_64 (like probably 99%+).

There are ARM applications/uses for the script as is that I would have never imagined (think where the chat is useful and there's no combat or anything happening). People use the Minecraft client / plugins in some really interesting / strange ways.

I assume someone will run this on some of the higher-end ARM hardware than the Pi (and probably have) but I haven't personally got a report of someone trying that yet but it should work as is if QEMU is in the repositories and it's running a fairly mainline Linux (you'll probably need to go to my article that is linked in the README and rebuild the dependencies but it's pretty easy). For the Pi though for general use I'm thinking Pi 5. Hopefully that helps!

Ok, thanks for the help