Skip to content

Support Nethernet in --dump-pong-details - #36

Closed
extremeheat wants to merge 1 commit into
masterfrom
fix/nethernet-pong
Closed

extremeheat wants to merge 1 commit into
masterfrom
fix/nethernet-pong

Conversation

@extremeheat

Copy link
Copy Markdown
Owner

--dump-pong-details currently sends only RakNet pings. BDS 1.26.51 defaults to Nethernet, so the command times out; forcing RakNet returns an empty advertisement and the server warns that players cannot connect using that transport.

Read the configured transport from the generated server.properties and query either the existing RakNet ports or Nethernet LAN discovery on UDP 7551. Normalize the available advertisement fields, add transport/advertisementVersion, and retain the raw advertisement (text for RakNet, hex for Nethernet). Empty advertisements now retry and eventually report an error instead of returning empty metadata.

The discovery-only implementation uses Node UDP/crypto and ProtoDef, with advertisement schemas from PrismarineJS/bedrock-protocol and framing based on PrismarineJS/node-nethernet. It adds no Bedrock client, WebRTC, auth, or Minecraft version-database dependency. The binary advertisement parser supports v4 and v7 without inventing absent version fields. BDS's length prefix includes itself, unlike node-nethernet's prefix; a regression test covers this difference.

Updated CLI option forwarding, help, API types, docs, and tests. Nethernet discovery requires LAN visibility and one discoverable local server at a time, documented in the README.

Validation: lint and all 17 tests pass locally, including real RakNet 1.21.80 and Nethernet 1.26.51 metadata queries. A separate CLI smoke test returned 1.26.51 / protocol 2193. Legacy server tests used locally unpacked libssl 1.1, matching CI's existing dependency. Linux/Windows CI will run on this PR.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-22T11:09:21.962605Z 2d050c4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@extremeheat

Copy link
Copy Markdown
Owner Author

Superseded by #37, which uses bedrock-protocol for discovery and decoding instead of adding duplicate transport code and schemas here. The schema extraction and shared API are linked from the replacement PR. Keeping this branch available for reference.

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