TransWikia.com

Can't connect to Minecraft Bedrock server from WAN

Arqade Asked on May 26, 2021

This question is all over the place, but I have found no answers to help me solve it!

I set up a Minecraft Bedrock server (version 1.14.32.1) on an Ubuntu 18.04 VM running on VirtualBox (hosted on my Windows 10 desktop), and have forwarded UDP port 19132 in my router to the VM. (Note: ufw is currently disabled in Ubuntu).

I can happily connect to it from within the LAN (ie. from my Windows 10 computer, using the LAN IP of the server), but any attempt to connect to it via my public IP address fails with the usual ‘Unable to connect to world’ error message.

Running tcpdump on the VM and watching UDP port 19132, I can see a steady trickle of packets reaching the VM while I have the Minecraft app open and am in the Servers list with my server added at the bottom (using the public rather than private IP), indicating the client is polling the server. The client shows the server as offline though. Similarly, when I try to connect, I see an increased flow of packets arriving and yet no connection. I know my port forwarding is set up correctly (according to the instructions provided), but still no joy.

To be certain, I have also tried connecting to the server using an iPad outside the LAN – no dice.

Most interesting clue I have found so far was the commentary in this bug report: https://bugs.mojang.com/browse/BDS-85

Per the comments there, I tried creating a ‘minecraft’ user with home directory /opt/minecraft and running the server from there. Sadly, this had no impact.

UPDATE: I have also tried running the server directly on my Windows 10 host now also. Same behaviour results here also (with router port forwarding rule updated to the new host IP).

3 Answers

I've been fighting the same problem for the last few days. Finally I seem to have found the solution by:

  1. Forwarding the VM IP address (probably silly but I initially fwd the NAS that runs the VM
  2. Fwd ports 19131/32/33. My router supports fwd of both TCP and UDP

Later I will try to figure out which of the 3 ports are actually needed and whether I need to fwd both TCP and UDP requests. But for now happy that it is working!

Answered by user248768 on May 26, 2021

This is likely a result of most routers blocking foreign connections that were not initiated by you. Check your router settings.

Answered by Penguin on May 26, 2021

For some reasons Ubuntu 18.04 on virtualbox doesn't have default route to gateway after installation, while in the same time it knows how to go to the Internet when you want to ping google.com, for example :) Adding default route solved issue for me:

$ sudo ip route add default via 192.168.168.254

where 192.168.168.254 is IP of your gateway in local network.

Answered by Сергей Синегуб on May 26, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP