Some players, specially on mobile phone, can't connect to PowerNukkit

Symptoms

  • The server doesn’t show the online player count in the server list for some players
  • When some players try to connect, they receive an error saying that the game could not load the world
  • Some players using a mobile phone can see the online player count only when using WiFi or only when using 3G, 4G, 5G or any mobile internet

Causes

  • Your host has IPv6 and the players are trying to connect directly to your IPv4 from a device with IPv6 support
  • The players are trying to connect directly to IPv6 using a device that doesn’t support IPv6
  • Your host has IPv6 and the hostname DNS entries don’t have both A and AAAA records pointing to the right server’s IPv4 and IPv6
  • The server’s IPv6 or IPv4 isn’t accessible to the public
  • The firewall is blocking the UDP server port for packets going in or out the server’s IPv6 or IPv4
  • The A or AAAA record has proxying enabled in your DNS settings.

Resolution

  1. Make sure your IPv6 and IPv4 addresses are public. IPv6 must be public if your host supports it.
  2. Make sure your firewall or your antivirus isn’t blocking the server UDP port in both public IPv4 and IPv6 addresses. The default server port is 19132
  3. Make sure your DNS settings are mapping the A (IPv4) and AAAA (IPv6) records to the right server public IPs and they are located in the same hostname
  4. If you use Cloudflare or a DNS server that provides proxying, make sure that both A and AAAA entries are not proxied

Valid Examples

DNS Settings

Example of valid settings for myserver.<your-domain>

If your server has IPv6 it needs both AAAA and A records.
If your server has only IPv4 it needs only the A record.

Firewall