Brings Minecraft: Bedrock Edition's "Join LAN game" across home networks: two players in different Wi-Fi networks play together via their switch's normal LAN mode — no Realm, no server host. Works since Bedrock 26.60 (NetherNet network stack) and requires a small relay (server) plus a node container in each player's Wi-Fi.
Switch A (LAN host) ⇄ Node A (Docker, host net) ⇄ Relay (your VPS) ⇄ Node B (Docker, host net) ⇄ Switch B
| Tag | Zweck | Architekturen |
|---|---|---|
joyki/mc-bridge:server / :server-latest | Relay für den VPS | linux/amd64, linux/arm64 |
joyki/mc-bridge:client / :client-latest | Node je WLAN | linux/amd64, linux/arm64 |
joyki/mc-bridge:client-arm / :client-arm-latest | Node, aarch64-nativ (Raspberry Pi) | linux/arm64 |
docker run -d --name mcbridge-relay \
--restart unless-stopped \
-p 7001:7001 \
-e MC_LISTEN=":7001" \
-e MC_TOKEN="a-long-shared-secret" \
joyki/mc-bridge:server
docker run -d --name mcbridge-node \
--restart unless-stopped \
--network host \
-e MC_RELAY="tcp://your.relays.host:7001" \
-e MC_ROOM="room-alice-bob" \
-e MCBRIDGE_TOKEN="a-long-shared-secret" \
-e MC_NODE_ID="pi-alice" \
joyki/mc-bridge:client-arm
--network hostis required for the node: LAN discovery uses UDP broadcast (255.255.255.255:7551), which cannot cross Docker bridge networks. Linux intended (Raspberry Pi in the same Wi-Fi as the Nintendo Switch).
Then: one player starts a world, the other picks Play → Worlds and joins the world named "… [Bridge]".
services:
mcbridge-relay:
image: joyki/mc-bridge:server
container_name: mcbridge-relay
restart: unless-stopped
ports:
- "7001:7001/tcp"
environment:
MC_LISTEN: ":7001"
MC_TOKEN: "a-long-shared-secret"
services:
mcbridge-node:
image: joyki/mc-bridge:client-arm
container_name: mcbridge-node
restart: unless-stopped
network_mode: host
environment:
MC_RELAY: "tcp://your.relays.host:7001"
MC_ROOM: "room-alice-bob"
MCBRIDGE_TOKEN: "a-long-shared-secret"
MC_NODE_ID: "pi-alice"
Managing:
docker compose -f compose.server.yml up -d
docker compose -f compose.client.yml up -d
docker compose -f compose.client.yml logs -f
| Variable | Binary | Default | Purpose |
|---|---|---|---|
MC_LISTEN | server | :7001 | TCP listen address |
MC_TOKEN | server | (empty) | shared secret nodes must present |
MC_RELAY | client | (empty) | relay address: tcp://host:port or tls://host:port (TLS accepts self-signed certs) |
MC_ROOM | client | (empty) | room code; nodes in the same room share worlds |
MCBRIDGE_TOKEN | client | (empty) | secret matching the relay's MC_TOKEN |
MC_NODE_ID | client | hostname | unique ID of the node inside its room |
MC_DISCOVERY_ADDR | client | :7551 | UDP address of the local NetherNet LAN host |
MC_WORLD_SUFFIX | client | [Bridge] | suffix appended to announced remote world names (must not be empty) |
CLI flags (same names lowercase, -token, -room, …) override env vars.
| Component | Port | Direction |
|---|---|---|
| Server (relay) | TCP 7001 inbound | nodes connect out |
| Client (node) | UDP 7551 local LAN | discovery + NetherNet signaling (host network, no mapping) |
| Nodes | TCP outbound to relay | — |
docker run --privileged --rm tonistiigi/binfmt --install all # einmalig
PUSH=1 REPOSITORY=joyki/mc-bridge docker/build.sh
PUSH=1 erzeugt mit dem docker-container-Builder:
server(+latest) und client(+) für linux/amd64 + linux/arm64,
client-arm(+) nur für linux/arm64 und pusht alle Tags nach Docker Hub.
Content type
Image
Digest
sha256:2eb110c58…
Size
7.1 MB
Last updated
18 days ago
docker pull joyki/mc-bridge:client-arm_v2