Closed itzg closed 4 years ago
Unfortunately the Bedrock Dedicated Server doesn't have the query protocol built-in. Some information may be obtained by using the raknet
package (https://github.com/Sandertv/go-raknet), using raknet.Ping()
, such as the amount of players online.
The query
package can only be used for some server softwares like PocketMine or Minecraft Java softwares which do have this implemented.
Thanks for the super fast response and I'll give your raknet module a try.
FYI, this was the wording in the package docs that threw me off:
Package query specialises on Minecraft Bedrock Edition related queries
I'll change that, thank you!
raknet.Ping
worked perfectly btw.
I have downloaded a fresh copy of BDS and started it with no modification of properties. When using
query.Do
with an argument of "127.0.0.1:19132" I get the following error:The code I used for testing is https://gist.github.com/itzg/899dd84d2cea8810f2ec1d747dc46762#file-main-go
and the BDS server shows the following:
Do I need to adjust something in
server.properties
to enable query support? BTW, when I try the other mystery port (46664
in this particular case), I get the same error. I am running both on Ubuntu 18.04.4 LTS and a Windows 10 client is able to discover and connect fine to the server.