Skip to content
LeylineLauncher
Download

Host for friends

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.

Play on your own PC, alone or with friends. Leyline runs the world on your PC and brings your friends in through the Leyline relay: no router settings, no ports to open, and your home address is never shown to anyone.

Since 26 Nov 2026: Leyline's relay closed with our server, so the checks and links below that go through it no longer work. Friends on the same network still join. Your Den also takes friends from far away through Your own address (two router ports). Joining from anywhere with no relays of ours is coming. Today's steps are in Play with friends; the plan is in Joining a world and The way forward.

Host a world in three clicks

Works today on a Windows PC, for friends on the same network. Coming: friends far away (the new connection with no relay of ours).

  1. Press Host in the side menu.
  2. Pick a template: Your own world, The original world, or Your Den (which opens its own page).
  3. Press Start. When the card says World running, press Play, or Invite a friend.

A new world starts private (only friends you invite), at twice the normal levelling speed, with no roaming bots and helpers in dungeons. Change these later on the world's card (Single player › Your world).

The first world on a PC still takes the longest: Leyline gets its engine, reads the maps from your own game folder and fills the world once. It then keeps a prepared copy of that filled world on your PC, so every later world (another template, or a world made again) is copied in seconds instead of filled again. With Get worlds ready in the background on (Single player settings, on by default), the engine and the maps are done quietly as soon as your game folder is found, so your first Start is quicker too. Nothing of your game is sent anywhere: the copies are made on your PC from your own folder.

Invite a friend on the running world's card makes one link for one friend, good for a week: https://leylinelauncher.com/j/#…. Your friend opens it, their Leyline opens and asks Join (your name)'s world?, and one press of Join starts their game on your world. Their characters stay theirs on your world next time too.

  • The invite is signed with your Leyline key, so it can't be changed on the way, and it names no internet address.
  • Everything after # stays in your friend's browser: the website never sees the invite.
  • Your name in the question is the name on your Friends profile. With no name set, it says "your friend's world".
  • A friend who already has Leyline open can use Copy the Leyline link instead (leyline://join/…).

List your world

Let players you don't know find your world and join it, with no invite. Built, not yet tried between two real PCs (see below for what that means).

  1. Start your world (Host › a template › Start).
  2. On the World running card, turn on List this world. The i beside it says what it does.
  3. Optional: pick your region and a few tags (PvP, Roleplay, Bots…). They help players choose.

While it is on and your world runs:

  • Your world shows on other players' Realms page as a card with your world's name, its rules, how many people play and Hosted by a player. Their Join button needs no invite: their launcher reaches your PC by its key and makes their own lasting login on your world, the same login an invite would give them. Their characters stay theirs on your world next time.
  • Your PC's internet address is never in the listing. The listing carries your world's name, rules, player and bot counts, Leyline's version, your region and tags, and your PC's connection key.
  • The listing is refreshed every five minutes while the world runs and runs out 15 minutes after the last refresh.
  • Your choice is kept: a world you listed is listed again by itself the next time you start it.

Turn it off, stop the world or close Leyline and the world leaves the list. Turning it off or stopping the world sends a signed "closing" note, so it goes at once. Closing Leyline sends nothing, so the world goes when its listing runs out (15 minutes). The listing's join code stops working at once, and the next time you list the world it gets a new one. Players who joined while it was listed keep their login, the same as friends you invited.

Show it on the website too: press Copy the listing for the website and send what it copies to the site's owner. It is one signed record. The site shows your world under "Worlds players host" with a Join in Leyline button.

What is tested: the listing record and its signature, the refresh timer, the closing note, the choice kept after a restart, the join code letting a stranger make a lasting login (over a real connection on one PC), the card and the switch (browser tests). Not yet tried: a stranger on another PC and network joining by the key. Who sees your world today: friends and players on your network, plus anyone they pass it on to while it is fresh, and anyone who opens it from the website. Community nodes that hand the list on are coming.

Pick your world

Your Den (recommended for friends)Full realm
What it isYour own place to build, explore and hang out togetherThe whole game together: quests, dungeons, bots, your own rules
What it needs on your PCNothing more: it is built into Leyline (a Windows or Linux PC)Docker Desktop (free), about 4 GB of free memory, a one-time setup of 5 to 20 minutes
How fast it startsA few secondsA minute or two, once set up
AccountsNone: each invite has a login made for that friendFriends make an account on the invite link's page
Where to startPlay with friends (below), or the Your Den pageThe Host page: Private, a template, Host

Both are private: only people with your link get in. Both use your friends' own game folders: game files never travel, not through the link, the relay or between your PCs.

Play solo first

  • Your Den: press Play solo on Home (or Open my Den on the Your Den page). The first time, Leyline gets Your Den's server (one small download, checked), then your game opens inside your Den.
  • A full realm: on the Host page pick Private, a template, then Host. When it says it's live, press Play.

Your friends can join any time after. You don't have to be in the game for them to play, but Leyline must stay open and your PC awake.

Invite a friend (one step)

  1. Press Invite a friend: on Home, in the play bar's realm menu (Invite a friend…), on the Host page's banner, or on Your Den's Share with friends card.
  2. Leyline starts your world if it isn't running, puts it on the Leyline network (private), makes one link for one friend, and runs Ready for friends? (below).
  3. When every line is green, the link is copied. Send it to one friend: a message, Discord, email. Share… uses your system's share menu.

Want a second friend? Press Invite another friend: each friend gets their own link. A Your Den link works for 24 hours; Keep on the Friends list makes it last (a week from each visit). Stop sharing ends every link.

Ready for friends?

Before you send the link, Leyline checks the same way your friend's game will come in, one line at a time. Each red line says what to do, and most have a button for it.

LineWhat is checkedWhen it's red or yellow
Your world is runningYour world runs on this PC and answers a login on its portStart again. Still red: restart your PC
Connected to the Leyline relayThis PC's one connection out to the relay is upCheck this PC is online. A VPN, school or work network may block it: try another network
The relay sees your worldThe relay itself lists your world as onlineWait a few seconds, Check again
A friend can reach youA test login goes through the relay to your world and back, the exact path your friend usesStart again, then Check again. Still red: Copy diagnostics and send it to us
Your connectionHow far the relay is, and the round trip through itYellow means friends may feel lag: see "It's laggy" below
Your PC stays awakeYour PC's sleep timer (Windows)Open sleep settings and set Sleep to Never while friends play
FirewallNothing to open for the relay. Your Den's faster same-network way may want Den Lite allowedOpen firewall settings, allow Den Lite on private networks

The test login uses an account name no world has, so no account, password or login is used, and it never counts as a wrong password.

Copy diagnostics copies the checks as text for whoever helps you. It never has your invite link, a friend's login or a password.

For your friend

  1. They need Leyline and their own game folder (the same version as yours, added under Game folders). No account: their launcher's own key proves it's them.
  2. They open your link and press Open in Leyline, then Join. Or, in Leyline: Realms, Got an invite link?, paste it, Join.
  3. Leyline shows what's happening: Reaching your friend's world, Their world answers, Logging in. If a step stops, the line says why and what to do.

A Your Den link has their login inside: the game signs them in by itself. A full realm's link page has Make my account (the password never leaves their browser).

When something's wrong

What you seeWhyWhat to do
Your friend's game loops between Connecting and ConnectedThe relay is reached, but your world isn't answering behind it: still starting, stopped, or your PC sleptHost: press Invite a friend (or Check again) and fix what's red. Keep Leyline open and the PC awake. Your friend's join page now says "the host's world isn't answering" instead of looping
It's laggyEvery move goes your PC → the relay → your friend. A far relay, Wi-Fi, or a busy upload (cloud backups, streaming, a big download on the same line) adds delay. A shared internet address (CGNAT) works, but some of those lines are slowerUse a wired connection, pause big uploads, or let the friend with the faster internet host. Your connection on the checklist shows the delay
The invite says it isn't validLinks work for 24 hours, and stop when you press Stop sharing or make a new link for a full realmPress Invite a friend again and send the new link. Keep makes a Your Den link last
Your friend can't make an accountYour Den needs none: the link has their login. A full realm makes accounts only from its invite linkYour Den: they press Open in Leyline (the login comes with it). Full realm: they open the link on the PC they play on and use Make my account
"Private realm: open your invite link on this computer first"Their PC hasn't opened the link yet, or their internet address changed sinceThey open the link again on that PC
"Your friend's world isn't online"Leyline is closed on your PC, or the PC slept or lost its internetOpen Leyline: sharing comes back by itself after a restart
"Too many tries from your address"Several wrong passwords from one address in a few minutesWait ten minutes, then try again
Your friend's Leyline says it needs a game folderTheir game folder isn't added, or it's another versionThey add their own folder of the same version under Game folders

One PC, one host

Your world is there while Leyline is open and your PC is awake: when you close it, your friends' game stops too. For a world that's always up, run a full realm on a computer that stays on (see Keep your realm up 24/7), or ask a friend with a faster connection to host.

More

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