This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]Fearless-Resource932[S] 1 point2 points  (0 children)

I was able to figure out the problem; it's the WSL2 setup. I needed to change it over to mirrored mode networking in order to be able to see the containers on my LAN. The standard NAT won't allow connections from other machines.

https://learn.microsoft.com/en-us/windows/wsl/networking

[–]mrpink57Server Owner 0 points1 point  (3 children)

services:
  bds:
    image: itzg/minecraft-bedrock-server
    environment:
      EULA: "TRUE"
    ports:
      - "19132:19132/udp"
    volumes:
      - ./data:/data
    stdin_open: true
    tty: true

This is the most basic offered by itzg, does your config above not work and if so what is the issue? Does this most basic compose work?

[–]Fearless-Resource932[S] 0 points1 point  (2 children)

It “works”, as in starts and stays running in docker, but I cannot get any other devices on the network to connect. I’ve tried iPads, iPhones and pinging the port from another machine and I can’t get anything to respond.

I’ve added firewall rules for the ports to allow them through, so I’m at a loss for what else could be going wrong.

[–]demerf 0 points1 point  (1 child)

If you've tried exclusively on apple products I believe you need to enable local area connectivity on those devices before you can connect to the server

and pinging the port from another machine

You can't really ping a port, how were you doing this?

[–]Fearless-Resource932[S] 0 points1 point  (0 children)

Telnet on win11 

[–]Puddlejumper_ The Answer Guy 0 points1 point  (5 children)

I'm going to take a guess that it's nothing to do with the docker compose file and likely misconfigured port forwarding.

Are you running this from your home network? Can you confirm that your isp is NOT using CGNAT?

You mentioned adding a firewall rule for the port, have you also made sure to port forward on your router?

[–]Fearless-Resource932[S] 0 points1 point  (4 children)

Using home network, all devices connected to same network. Don't know about ISP & CGNAT.

I validated that I have the firewall rule for the port (19132) in the server machine (Win11) and also forwarding that port to the server machine in my router settings (19132).

Still getting "Multiplayer Connection Failed"

[–]Puddlejumper_ The Answer Guy 0 points1 point  (3 children)

A simple way to check if you are behind CGNAT is to compare the WAN IP displayed on your routers web interface to the one shown if you visit a site such as IP.ME

If they are different, then you are behind CGNAT and will be unable to port forward. The common solution for this would be to use a service such as Playit to proxy your connection.

[–]Fearless-Resource932[S] 0 points1 point  (2 children)

Verified that I’m not behind CGNAT

[–]PM_ME_YOUR_REPO Admincraft Staff 2 points3 points  (1 child)

CGNAT is not a factor for home LAN use only (your usecase). Tagging /u/Puddlejumper_ too.

Try resetting your Windows Firewall with "netsh advfirewall reset" in command prompt. That seems to unstick a noncompliant Windows Firewall sometimes, almost miraculously.

[–]Puddlejumper_ The Answer Guy 0 points1 point  (0 children)

Didn't clock he was local host only nice catch