Skip to content
LeylineLauncher
Download

Open a Leyline door on your server

Leyline runs no server of its own now. Parts of this page that needed it (sign-in, the relay, the official realm, the public realm list, the forum) no longer work. What still works.

Status, 28 Nov 2026: the door is built and tested on one PC: its tests run against fixture database rows, a fake SOAP console and a fake remote console, and the launcher joins the real door program end to end in one test. It has not yet been run next to a live AzerothCore, TrinityCore or CMaNGOS server, so treat it as coming until a server owner's run is written down. Character saves from the door work for AzerothCore and TrinityCore only.

You already run a server. The door puts it on the Leyline network without changing your server's code, tables or files, and without any relay or website of ours. Players press Play in their launcher; the launcher makes their account on your server through the door and signs the game in for them. Nobody types a password.

This is not the same as Bring your server, which goes through a Leyline relay (those relays are off since Leyline's server closed). The door needs only your own server.

What the door does

JobHow
Lists your serverEvery minute it signs a small record with your realm's own key: name, rules, tags, players and bots online, and where the door is. Launchers that meet the door pass it on.
Makes accountsA player's launcher proves its key to the door. The door makes that player's account with your server's own console command (account create) and a random password, and sends the login back sealed so only that player can read it.
Keeps a recordThe door and the player each keep a login record signed by both. If the door loses its list, the player's copy brings the account back.
Hands out character savesA player can ask for their characters as signed saves, so they can move them to another world later (AzerothCore and TrinityCore).

The door never writes to your databases. It reads player counts (and characters, when asked) and makes accounts only through the console, the same way you would by hand.

What you need

  • Your server: AzerothCore, TrinityCore or CMaNGOS, running.
  • Python 3.10 or newer with the cryptography package, and pymysql to read player counts. (The Host pack's tools image has both.)
  • The server's SOAP console on (SOAP.Enabled = 1 in the world server's config), or its remote console (Ra.Enable = 1), and an admin account for the door (GM level 3).
  • A read-only database user for player counts (optional but recommended).
  • One open TCP port for the door (8087 by default), beside your login port.

Step by step

  1. Get the tools. The door is in the Host pack under tools/door (or the repo's hosting/kit/tools). Open a terminal in the tools folder.
  2. Make the door's key and settings.
   python3 -m door init --state door-state --name "My Realm" --core trinitycore --host play.example.org

It prints your realm id. The key is in door-state/realm.key: keep a copy somewhere safe. Lose it and your realm becomes a new realm.

  1. Make the door's console account on your server, for example in the world server console: account create DOOR <a long password> then account set gmlevel DOOR 3 -1. Put the password, alone, in door-state/console.pass.
  2. Fill in door-state/door.json. The main settings:
SettingWhat
name, tagline, type, tags, rules, region, language, max_playerswhat players see on the Realms page
core, buildyour server software and the game build it takes
public_hostthe name players reach your server at (a DNS name or a public address)
auth_portyour login port (3724 unless you changed it)
door_port, listenthe door's port, and where it listens
console{"kind": "soap", "url": "http://127.0.0.1:7878/", "user": "DOOR", "password_file": "console.pass"}, or {"kind": "ra", "host": "127.0.0.1", "port": 3443, ...}
dbthe read-only user (password_file beside it), and auth / chars if your databases have other names
expansiona number to set with account set addon for each new account, or null
signupsopen, or closed (only players who joined before)
new_per_ip_hour, new_per_daylimits on new accounts
push, fetch, dhtoptional: mesh nodes to send the record to, https copies of out/snapshot.json, and a pointer on the public lookup network
  1. Check it. python3 -m door check --state door-state says whether the login port, the console and the database answer, and writes a first record.
  2. Open the door's port in your firewall and router (TCP 8087, or the one you chose).
  3. Run it. python3 -m door run --state door-state. Keep it running beside your server (a service, screen, or Docker).
  4. Let players find you. Any of these works, and they add up:
  • serve door-state/out/snapshot.json from your website and add that https address to fetch;
  • turn on dht so launchers can find your door by your realm key;
  • share your door's address with players: their launcher asks the door for the record itself.

Try it without touching your server

python3 -m door beat --state door-state --dry-run signs a record without asking your console, and python3 -m door run --state door-state --dry-run makes accounts in memory only.

Safety

  • Passwords are random, new on every join, sent sealed to the player's key, and never written to the door's logs or files. The door keeps only the signed login records (logins.json).
  • Each player gets the login G + 15 letters and digits, made from their key and your realm: a different name on every server, so two servers can't tell they have the same player.
  • No game files ever pass through the door.

For developers

The door speaks one line each way over TCP (LLD1 HELLO, CHAL, JOIN, OK, SIGN, KEPT). The records are in the Commonhold v1 draft (docs/COMMONHOLD-V1.md, §10 and §12), with test vectors any other launcher can check itself against.

These pages are in the repo at docs/leyline. Source