Map NetherNet properties and fix healthcheck - #675
Merged
Merged
Conversation
TRANSPORT/SERVER_UDP_PORTS/SERVER_IP were ignored; latest BDS also fails the RakNet healthcheck. Leave TRANSPORT unset so pinned RakNet versions keep zip defaults.
Owner
I think it should be opt-in. Only the given environment variables are applied to properties, so normally the bedrock supplied defaults have to be assumed correct. If not, that’s Mojang’s issue to fix. |
itzg
approved these changes
Sep 17, 2026
Owner
There was a problem hiding this comment.
I would like to enhance mc-monitor to support this; however this wrapper script is needed even for that and this is a good reference implementation.
Contributor
Author
|
No problem! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TRANSPORT,SERVER_UDP_PORTS, andSERVER_IPthroughproperty-definitions.jsonso env vars are written intoserver.propertieslike the other BDS keys. Fixes ignoredTRANSPORT=/SERVER_UDP_PORTS=on current BDS (see Nethernet and latest version (1.26.51.1) - unable to connect #673).EXPOSE 19132/tcp. Healthcheck isbds-healthcheck:GET /v1/joinonly whenTRANSPORT=nethernet, otherwise the existingmc-monitorRakNet ping.examples/nethernet/compose.yml. Existing compose/k8s examples are unchanged.TRANSPORTis not defaulted in the Dockerfile so pinned RakNetVERSION=still gets zip defaults.Open question
Should
TRANSPORTdefault tonethernetforVERSION=LATESTonly, or stay opt-in? This PR keeps it opt-in.Test plan
set-property --bulkwritestransportandserver-udp-portsfrom envitzg/minecraft-bedrock-server:nethernet-testTRANSPORT=nethernet: TCP 19132,GET /v1/join2xx, healthcheck healthyTRANSPORT=raknet: healthcheck usesmc-monitor(not/v1/join)SERVER_UDP_PORTSmapping (<reachable-ipv4>:19140-19155:19140-19155) + client Add Server (WAN). Hostname in that field fails (Door); IP literal works.VERSION=UDP-only still mapsSERVER_PORT; RakNet healthcheck when/v1/joinis unused