Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How did you figure out the bedrock connection monitoring setup? #46

Closed
joebywan opened this issue Feb 21, 2022 · 3 comments
Closed

How did you figure out the bedrock connection monitoring setup? #46

joebywan opened this issue Feb 21, 2022 · 3 comments

Comments

@joebywan
Copy link

I've currently used your setup for a minecraft server which has been great, but I'm trying to wander off into the weeds by setting up a valheim server.

It uses 2456-2457/udp.

I was looking at using something like a python library to query the server direct, but then I realised your bedrock code is detecting connections on UDP.

Spent the evening trying to understand it, currently lost on the bedrockping string you build.

Basically just seeing if you'd be willing to shed some light on it before I spend some more time on it :)

Thanks again.

@doctorray117
Copy link
Owner

Bedrock uses the Raknet protocol. I'm using an "unconnected ping" for this. There's also a project itzg/mc-monitor which I considered trying to integrate but it made the container way too big because of the dependency on go.

Even though it's documented, I'm pretty sure I ran the bedrock server on my computer and used wireshark to observe the behavior of the client connecting, and wrote those lines to produce something similar (though I do need to test again as someone else reported an issue with it).

You may also check out node-gamedig which already talks valheim among a bajillion other games.

@joebywan
Copy link
Author

Ahh cool. So you're emulating a client trying to query the server, then parsing the response to get the current player count yeah?

Thanks for that link to gamedig, I'll check it out.

@joebywan joebywan reopened this Feb 25, 2022
@joebywan
Copy link
Author

I've been playing with trying to build a container around aws-cli and adding nvm, node & npm to get gamedig on it. Have you managed to get it working?

@doctorray117 doctorray117 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants