Feature Request: Add Public IP / External UDP Port Mapping Configuration for Minecraft Bedrock NetherNet

Hiii! I would like to request an option in AMP to configure the public IP address and external UDP port mappings used by Minecraft Bedrock’s NetherNet transport.

Currently, AMP automatically generates the server-udp-ports property using the $UDPTransportPortRange variable. However, when hosting Minecraft Bedrock behind NAT, the generated configuration may not provide the public IP information required for external clients to connect successfully.

Environment

  • AMP Version: 2.8.0.10

  • Module: GenericModule (Minecraft Bedrock)

  • Operating System: Ubuntu Linux

  • Deployment: AMP instances running in Docker containers

  • Virtualization: Proxmox

  • Firewall/Router: OPNsense

  • Minecraft Transport: NetherNet (WebRTC)

  • Network: Server behind NAT with UDP port forwarding

Issue Encountered

I host multiple Minecraft Bedrock servers using AMP.

After switching to NetherNet, clients on my local network could connect successfully, and external clients could retrieve the server information through the TCP signaling port. However, external clients could not successfully join the world.

Packet captures showed that the TCP connection was established, but the expected incoming NetherNet UDP traffic was not reaching the server.

AMP was automatically generating the following configuration for one of my instances:

server-udp-ports=20000-20019

I discovered that the setting was generated through the following mapping in metaconfig.json:

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

Working Solution

I modified the mapping to explicitly specify the public IPv4 address and external-to-internal UDP port range:

"server-udp-ports=": "PUBLIC_IP:20000-20019:20000-20019"

After restarting the AMP instance, the resulting Minecraft configuration became:

server-udp-ports=PUBLIC_IP:20000-20019:20000-20019

External clients were then able to connect successfully over cellular data.

I applied the same configuration approach to four additional Minecraft Bedrock instances, each using its own UDP port range.

Requested Feature

It would be helpful if AMP provided the following options in the Minecraft Bedrock instance configuration:

  1. Public IP / External Address: Allow users to specify the public IPv4 address used for NetherNet connections.

  2. External UDP Port Mapping: Allow users to configure external-to-internal UDP port mappings while preserving AMP’s port allocation system.

  3. Automatic Configuration Generation: Generate the appropriate server-udp-ports property without requiring manual changes to metaconfig.json.

  4. Dynamic Public IP Support (Optional): Support hostname-based configuration or automatic public-IP detection and updates for users with dynamic WAN addresses.

Ideally, these settings would be available in the existing Network and Ports section.

Expected Behavior

AMP should allow administrators hosting Minecraft Bedrock behind NAT to explicitly configure the public address and UDP port mappings used by NetherNet, while continuing to manage the allocated port ranges automatically.

Additional Notes

AMP already provides an Advertised Connection Address setting, but it does not appear to control the public IP used in the generated NetherNet UDP transport configuration.

A dedicated NetherNet public-address setting would make hosting Minecraft Bedrock behind NAT easier and avoid requiring manual edits to AMP-managed configuration files.

Thank you for considering this feature.

4 Likes

I had the same issue with Bedrock using NetherNet. The workaround I found was to add this to the Additional Server Settings box in AMP:

server-udp-ports=<PUBLIC_IP>:19134-19153:19134-19153

Replace <PUBLIC_IP> with your actual public IP address. I tried using my DDNS hostname, but it didn’t work — it needs the IP address directly.

The downside is that if your public IP changes, you have to update the line manually and restart the Bedrock server. It’s not ideal, but it’s what worked for me.

I have that same issue can’t get others to the server spending hours and couldn’t get it to work.

I tried using my domain and subdomain for the public ip address and it doesnt like it.
I have to put in the actual ip address in for it to work as Jdmus mention above.

I hope there is an easy way to modify in the AMP app to use subdomain name instead actual ip addresses.

I am sure many would have this problem.

1 Like

I think the tricky part here is that a hostname and a public IP aren’t really interchangeable in this particular configuration.

What might help is letting AMP accept a hostname in the UI, resolve it to an IPv4 address, and then write that address into server-udp-ports. That way the game server still gets the format it expects, while users with dynamic IPs wouldn’t have to keep looking up their address manually.

The other thing I’d consider is what happens when the public IP changes while the server is running. Resolving it only once during setup wouldn’t completely solve the problem. AMP would probably need to detect changes and regenerate the configuration, with a restart when necessary.

I feel like that would be a more practical solution than trying to make NetherNet accept hostnames directly.

just to clarify it can not be a domain or sub domain only the public ip

Jason_Tran also mentions this

thanks