Hosting on a Minecraft computer
Serve nearby computers over modems, with a terminal dashboard and persistent site identity.
On this page
What you need
- A running CC:Tweaked computer with Lantern installed.
- A local site created through lantern host or lantern edit.
- A modem, plus a unique desktop-generated secret seed imported on this installation.
- Other computers with reachable modems and their own unique security state.
Prepare a unique seed
On your desktop, generate 32 random bytes as 64 hexadecimal characters. The following command uses Python’s operating-system-backed randomness. It writes a file; it does not print the secret. Securely transfer that file into the target computer’s filesystem.
python3 -c 'import secrets; open("lantern.seed", "x").write(secrets.token_hex(32) + "\n")'Import on the Minecraft computer
Successful import removes the source seed file. Missing or corrupt security state disables secure modem networking; local preview and HTTPS Hub browsing remain separate capabilities. Restart before importing a replacement seed after networking has already initialized.
lantern seed lantern.seedStart the dashboard
Or run lantern host, choose Manage / my-first-site, then Start hosting. The live dashboard shows requests, errors, connection count and the site fingerprint. Q stops an interactive host. For a host without the dashboard, use lantern host my-first-site --headless.
Hosting-tools installations open server tools when you run lantern without arguments. Startup integration opens that manager; it does not automatically choose and serve a site.
lantern host my-first-siteVisit and verify
Discovery names are untrusted hints. Share the fingerprint through a trusted channel, compare it, and use the browser’s Verify fingerprint action. Encryption alone does not prove who owns a friendly name. Saved identity changes block automatic reconnection.
Local owner-installed Lua has the computer’s privileges. Do not install mutually untrusted server scripts and expect isolation.
lantern ln://my-first-site/Found a mismatch? Include the exact error, runtime version and a small example with secrets removed.