RTFM.
THEN RUN
THE GRID.
Everything needed to take a pile of PCs and turn it into one shared Minecraft world: install, host a room, bolt on workers, let vanilla players in, and open the right ports.
01 / QUICK START
FIVE COMMANDS TO A WORLD.
The fastest path: build the Windows app, launch the dashboard, create a room, then invite a second machine into the mesh.
Clone the repository, install the runtime dependencies and start the desktop dashboard. The dashboard creates the room, the secret key and the server for you.
# from the repository root$ python -m pip install -r requirements.txt $ python minegrid_desktop.py
Prefer a double-clickable build? Bundle the runtime, web assets and adapter JARs into a single executable:
$ python scripts/build_exe.py # → dist/MineGrid.exe
Minimum viable cluster
One machine to host, one machine to join, and at least one player on a vanilla Java client. A second machine is a worker, not a server you rent.
02 / REQUIREMENTS
WHAT YOU ACTUALLY NEED.
Windows 10 / 11
The packaged app targets Windows. The Python sources in the repository run cross-platform for development.
Python 3 + pip
For the CLI and dashboard modes. Requirements install with requirements.txt.
Minecraft Java 1.20.1
Vanilla clients. Players install nothing. Server side runs Paper 1.20.1, provisioned for you.
Same LAN to start
Workers on one local network is the shipped path. WAN hole punching exists; overlay networking is roadmap.
03 / HOST A ROOM
HOSTING THE CLUSTER.
A host publishes a room. Peers join it with a six-character code. Nothing is rented; the room lives on your machine while it runs.
Start the coordinator once (it registers rooms), then host. The coordinator needs a random secret of 32+ bytes.
# 1. coordinator$ export MINEGRID_API_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')" $ python minegrid_service.py # 2. host — a room code is generated automatically$ python minegrid_daemon.py host # MINEGRID HOST DAEMON - ROOM [4B7-2XZ]
- Codes use an unambiguous alphabet (no 0/O/1/I) and display as XXX-XXX; the canonical form drops the hyphen.
- The host sends heartbeats and releases the room on shutdown. A crashed host expires after MINEGRID_HEARTBEAT_TIMEOUT seconds (default 45).
- If a generated code collides with a live room, a new one is issued. An explicit --room-code that is already taken is an error.
- Point at a remote coordinator with --coordinator-url or MINEGRID_COORDINATOR_URL (default http://127.0.0.1:8765); --no-coordinator skips registration entirely.
04 / WORKER NODES
ADDING MACHINES.
Every additional PC joins with the room code and a seed peer. A worker holds world state and can take over hosting.
# 3. peer joins with the room code (hyphen and case optional)$ python minegrid_daemon.py join 4B7-2XZ --peer 192.168.1.10:25566
For an authenticated mesh, pass the same 64-hex secret on both sides:
# host$ python minegrid_daemon.py host --room-code MINE01 --secret-key <64_HEX_KEY> --p2p-port 25566 --snapshot-port 25567 --port 25565 # worker / hot standby$ python minegrid_daemon.py join MINE01 --secret-key <64_HEX_KEY> --peer <HOST_IP>:25566
Generate the shared secret once and keep it out of git:
$ python -c "import secrets; print(secrets.token_hex(32))"
Optional · dimension partitioning
A node can own a dimension. Daemons advertise ownership over the encrypted mesh, build portal routes automatically, and copy the player's <uuid>.dat before the handoff.
$ python minegrid_daemon.py host --room-code MINE01 --secret-key <KEY> --dimension overworld --port 25565 $ python minegrid_daemon.py join MINE01 --secret-key <KEY> --peer <HOST_IP>:25566 --dimension nether --port 25577
Repeat --dimension to host several. --portal-route DIMENSION=HOST:PORT stays available as a manual override, and --no-player-data-sync disables the .dat transfer.
05 / PLAYERS JOIN
NOBODY INSTALLS A MOD.
Players never run the Python join command — that only adds a node to the mesh. Joining the world happens inside Minecraft.
- Open Multiplayer → Direct Connection.
- Enter <HOST_IP>:<PROXY_PORT> — or <HOST_IP>:25565 when the proxy is disabled.
- The host prints the real proxy port at startup; that number is what remote players need.
Walking new players through it? The Play & Join page has the three-step version and copyable connection details.
06 / WORLD SETUP
THE SERVER JAR, HANDLED.
Before the first host launch there has to be a Minecraft server JAR. MineGrid downloads, verifies and configures it.
$ python minegrid_daemon.py setup-server --server paper-1.20.1 --agree-eula
- Verifies the SHA-256 checksum, accepts the Mojang EULA (eula.txt) and writes an optimized server.properties with MineGrid presets.
- Supported: paper-1.20.1 (recommended for zero-disconnect failover), paper-1.20.2, paper-1.20.4, vanilla-1.20.1, vanilla-1.20.4.
- The dashboard's Host tab does the same thing with a live progress bar and hash verification.
Per-world settings, difficulty, seeds and region layout live in World Configuration. Node capacity and health live in Worker Management.
07 / DESKTOP DASHBOARD
THE CONTROL ROOM.
A local single-page dashboard in an app window. Standard library only, bound to loopback, session-cookie protected.
$ python minegrid_desktop.py $ python minegrid_desktop.py --room-code K7QX2M --room-name "Friday Night" $ python minegrid_desktop.py --no-browser --no-daemon --port 3000 # or from the daemon CLI$ python minegrid_daemon.py gui
- Tabs: Overview, My Servers, Network, Nodes, Downloads, Activity and Settings.
- One-click cluster creation, room code and 64-hex secret generation, hardware tier diagnostics, peer mesh topology, copyable Direct Connect addresses and a streaming console.
- Telemetry is read from the running system. Values that cannot be measured — TPS without adapter MSPT, world-sync percentage — are shown as unavailable rather than estimated.
08 / PORTS & NETWORK
OPEN THE RIGHT HOLES.
LAN is the simple case. Over the internet, forward these ports or put both machines on a private mesh.
| PORT | PROTOCOL | WHAT IT DOES |
|---|---|---|
| 25565 | TCP | Game / proxy port players connect to. The host prints the actual proxy port at startup. |
| 25566 | UDP | Seed peer-to-peer port used by --peer and the encrypted mesh. |
| 25567 | TCP | Snapshot replication between hosts and workers. |
| 8765 | TCP | Coordinator HTTP room registry. |
| 8766 | UDP | Coordinator rendezvous used by hole punching. |
- LAN: point --peer at the host's local IPv4, e.g. 192.168.1.10:25566.
- WAN: the daemon runs RFC 5389 STUN discovery on boot (--stun, on by default) and both nodes attempt direct UDP hole punching against every candidate endpoint.
- The initial --peer seed still has to be reachable by LAN/WAN address or through a private overlay.
Symmetric NAT / CGNAT
Without a relay or TURN server, UDP hole punching can fail. Forward 25566/UDP, 25567/TCP and 25565/TCP, or run both machines on a private mesh such as Tailscale or ZeroTier. STUN exchange does not create a relay.
09 / TROUBLESHOOTING
WHEN THE MESH WON'T MESH.
Check the seed
The first --peer must be reachable. Verify the port (25566/UDP by default) and that both machines are on the same network.
Heartbeat
A crashed host expires after MINEGRID_HEARTBEAT_TIMEOUT (45s default). Restart the host for a fresh code.
Host still runs
If the coordinator is unreachable or MINEGRID_API_TOKEN is unset, the host warns and keeps running — peers can still join with --peer.
Wrong port
Remote players need the printed proxy port, not the P2P port, and it must be forwarded on the host's router.
10 / LIMITS & ROADMAP
WHAT IS SHIPPED, WHAT ISN'T.
No marketing fog here. These are the boundaries of the current engine.
- Shipped: cluster hosting across machines on the same network, hot-standby failover, voluntary host handoff, region handoff that keeps a live vanilla client connected across a 512-block border (ADR-003 / ADR-004), snapshot replication, the Paper plugin and Fabric adapter, dimension partitioning.
- Shipped with caveats: WAN play via STUN and UDP hole punching — it depends on your NAT and may need port forwarding or a private mesh.
- Roadmap: overlay networking so workers can sit on different networks without a mesh, and the Phase 2 multi-active MultiPaper sharded mesh. Neither is claimed as available today.
- Not supported: Bedrock clients, and hosted infrastructure — MineGrid runs on hardware you own.
11 / REGION HANDOFF
NOBODY DISCONNECTS FOR A BORDER.
The world is cut into 512-block cells, and every cell has one owner. Walking out of yours hands simulation to the shard that owns the next one — while your client keeps the same socket.
This is what makes a cluster feel like one server: a handoff transfers simulation, not your connection. The proxy keeps the TCP session, the destination shard adopts the player, and the client is re-entered into the level. Inventory, position, health and XP cross with you. What you see is one loading screen — never a disconnect screen.
512 blocks
Region ownership is spatial: a 512 × 512 cell belongs to exactly one shard at a time.
20 blocks past the border
A crossing fires at X = 532 heading east and X = 492 coming back west, so pacing on the border cannot reload your world.
The client socket
The proxy never closes the connection: the new owner streams into the existing session instead of waiting for a fresh login.
One level re-entry
A chunk re-send, not a reconnect. No relog, no queue, no "Connection Lost".
A crossing is four steps: the ingress reports the boundary, the destination is pinned as the new simulation owner, player data is copied and hash-verified, and the destination streams its epoch into your existing socket.
# what the proxy logs on a clean crossing
handoff timeline total=179 ms preflight=86 frame=92
first destination chunk 129 ms after the level re-entry
Measured on a vanilla 1.20.1 client against a two-shard grid on one machine, 2026-11-29: 179 ms from the boundary report to the destination's first frame, first chunk 129 ms after the level re-entry. A later crossing that day completed in 832 ms, first chunk at 492 ms.
When the destination does not answer
A pin is a promise: the destination has to open its stream. If it does not within 15 seconds, the proxy migrates the client onto that shard directly instead of leaving it unowned — slower, but it never strands a player in an empty world.
The policy lives in docs/ADR-003.md (spatial partitioning) and docs/ADR-004.md (translated epochs).
12 / ARCHITECTURE
HOW THE PIECES STACK.
Clients connect to a proxy. A daemon coordinates leadership and regions. Workers simulate and hold the world.
Vanilla clients
Java Edition players, no mods, connecting to the proxy port.
Desktop app + proxy
Local dashboard and the zero-disconnect Minecraft proxy that migrates live player sessions on failover.
Daemon orchestrator
Bully consensus with fencing, epoch terms, scheduler, region registry and handoff coordination.
Worker regions
Chunk ownership follows available capacity; snapshots are SHA-256 verified and promoted atomically. A player crossing a cell border keeps their connection — see Region handoff.
Protocol details — ChaCha20-Poly1305 framing, anti-replay windows, crash-consistent chunk freezing — are in the repository's architecture notes and ADRs, linked below.
13 / MORE DOCS
KEEP READING.
READY TO HOST?
Grab the app, create a room, and put a second machine to work.