Connectivity Problem with Minecraft Bedrock - NetherNet UDP port variable not resolved / External connections failing

System Information

Field Value
Operating System Linux - Debian GNU/Linux 13 on x86_64
Product AMP ‘Proteus’ v2.8.0.8 (Mainline)
Virtualization Docker
Application Minecraft Bedrock
Module GenericModule
Running in Container Yes
Current State Ready

Problem Description

Issue

Minecraft Bedrock – NetherNet UDP port variable not resolved / External connections failing

AMP version: Proteus 2.8.0.8
Operating system: Ubuntu Server 24.04.5
Deployment: Docker container with host networking enabled
Minecraft Bedrock version: 1.26.2.3
Instance: MCBED01

Problem description

My Minecraft Bedrock server starts successfully through AMP and reports that it is accepting clients on port 19132. However, external clients cannot connect to the server.

The problem appears to be related to AMP not resolving the $UDPTransportPortRange variable when generating server.properties.

The Minecraft console consistently reports:

[ERROR] server-udp-ports: Invalid Port. Port must be in the range [1, 65535]

The generated server.properties contains:

server-port=19132
server-portv6=19133
transport=nethernet
server-udp-ports=$UDPTransportPortRange

AMP’s Network and Ports configuration shows:

Port Protocol
Server IPv4 – 19132 TCP+UDP
Server IPv6 – 19133 UDP
NetherNet UDP Transport – 19134 UDP
Debugger – 19154 UDP

Troubleshooting performed

  1. Verified that UDP port forwarding is configured on the router for ports 19132 and 19133.
  2. Confirmed that Ubuntu UFW is inactive.
  3. Used tcpdump to confirm that external UDP packets reach the Ubuntu server on port 19132.
  4. Observed no outgoing UDP responses to those connection attempts.
  5. Checked listening sockets using ss. No process was listening on UDP 19132, 19133 or 19134.
  6. Confirmed that the Minecraft Bedrock process was running inside the AMP Docker container.
  7. Confirmed that the container uses Docker host networking.
  8. Manually changed server-udp-ports to 19134 in server.properties while the instance was stopped.
  9. After starting the instance through AMP, the setting was automatically overwritten with $UDPTransportPortRange, and the same invalid-port error returned.

AMP’s Status page also reports Not Listening for UDP ports 19132 and 19133, despite the Minecraft console reporting:

Accepting clients on [::]:19132
Signed in to signaling service successfully
Server started.

Possible cause

In /AMP/metaconfig.json, the following mapping exists:

"server-udp-ports=": "$UDPTransportPortRange"

It appears that AMP may be writing the variable literally into server.properties rather than substituting the allocated NetherNet UDP transport port or port range.

Questions

  • Is $UDPTransportPortRange expected to be resolved automatically by AMP?
  • Should the NetherNet UDP Transport Ports allocation be a single port or a range?
  • Is this a known issue with AMP Proteus 2.8.0.8 or its Minecraft Bedrock configuration?
  • Is there a recommended workaround that will survive instance restarts?

I would appreciate any guidance. I can provide additional logs and configuration details if required.

Thank you!

Reproduction Steps

  • Start AMP Proteus 2.8.0.8 on Ubuntu Server with a Minecraft Bedrock instance using Docker host networking.
  • Configure Minecraft Bedrock to use NetherNet transport, with server port 19132 and NetherNet UDP transport port 19134.
  • Check the console log for the message: Invalid Port. Port must be in the range [1, 65535].
  • Inspect server.properties and confirm that server-udp-ports=$UDPTransportPortRange is written literally instead of a valid port.
  • Attempt to connect from an external network. Incoming UDP packets reach the host, but the Minecraft connection fails.