Skip to content

Respond locally to Bedrock Xbox status pings - #811

Open
guhlutions wants to merge 1 commit into
ViaVersion:mainfrom
guhlutions:fix/xbox-server-list-ping
Open

guhlutions wants to merge 1 commit into
ViaVersion:mainfrom
guhlutions:fix/xbox-server-list-ping

Conversation

@guhlutions

Copy link
Copy Markdown

A Java server-list query to a Bedrock Realm sends its Xbox signaling session ID to the dedicated-server HTTP status lookup. The lookup tries to resolve that ID as a hostname and fails with UnknownHostException.

For Xbox and Xbox JSON-RPC signaling addresses, reply to the Java status request locally and echo the client's timestamp in the pong. Use the client's protocol and the configured MOTD when present. The displayed latency is the round trip to ViaProxy. Dedicated Bedrock servers continue to use their HTTP status endpoint.

Verified the status response and matching pong for both Xbox address types with Java 26.3 and 1.21.4. Also tested a custom MOTD and player counts from a dedicated server's HTTP status endpoint. Reproduced the original error with the previous build and verified the new response against a running Realm-configured proxy.

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

Successfully merging this pull request may close these issues.

1 participant