OneLobby docs

Get a lobby server in five minutes (no coding)

You click a button, sign in, and copy an address like https://your-name.onrender.com. That address is your lobby server, and your game needs nothing else from this page.

A lobby server lets players find each other with a join code. This page puts one on Render, a hosting site with a free plan. Nothing to install. The game itself runs between the players; the server only introduces them.

Steps

  1. Click the button.

    Deploy to Render

    If the button doesn't work (Render shows an error or a "not found" page), the OneLobby project isn't public at that address yet. Ask whoever gave you this guide for the current link, then come back to step 2.

  2. Sign in or sign up. Render asks you to log in. GitHub, GitLab, Google or email all work. The free plan does not ask for a credit card.

  3. Check the form and click "Deploy Blueprint" (the button may say "Apply"). Render shows one service named onelobby-server on the Free plan. You can rename it; the name becomes part of your address. Leave everything else as it is.

  4. Wait for "Live". The first build takes a few minutes. Open the service from your Render dashboard and wait until the status says Live.

  5. Copy your address. Near the top of the service page is a link like https://onelobby-server-ab12.onrender.com. Click it: the page should say onelobby-server lk1, connect over WebSocket. That means it works.

  6. Give your game the address. Paste it exactly as you copied it, for example:

    <one-lobby server="https://onelobby-server-ab12.onrender.com" ...>

    (see docs/no-code.md). Developers using the JavaScript library can also write it as wss://onelobby-server-ab12.onrender.com/ws; both reach the same server.

What it costs

As of 24 October 2026, from Render's free plan page and pricing page:

Prices change; check the two links above for today's numbers.

Advanced: you can skip this

Everything below is for later, or for people comfortable with server settings. Your lobby server already works.

When some players can never connect (TURN relay)

A TURN relay is a server that passes game traffic between two players whose networks will not let them connect directly. You need one if some players can never join (the join hangs or times out every time) while others can, which typically happens on strict office, school or hotel networks and some mobile carriers. A relay has to be reachable on many ports, which free web hosts like Render do not allow, so it needs a real machine: follow RUN_YOUR_OWN.md, then add ONELOBBY_TURN_URLS and ONELOBBY_TURN_SECRET to this server's Environment tab (or move the lobby server onto that machine too).

Optional settings

On the service page, open Environment, add a variable, and save; Render restarts the server.

Variable Example What it does
ONELOBBY_ALLOWED_GAMES com.you.yourgame Accept only your game(s), comma-separated. Empty: any game.
ONELOBBY_MAX_LOBBIES 200 Most lobbies open at once (default 1000).
ONELOBBY_REGION us-west Short tag shown next to each lobby in the lobby list.
ONELOBBY_TURN_URLS, ONELOBBY_TURN_SECRET see above Hand out your TURN relay to players.

Leave ONELOBBY_TRUST_PROXY set to true: it lets the server tell players apart behind Render's front door.

Good to know: /metrics (server counters, no player data) is public on this setup; the advanced path restricts it. To update to a newer OneLobby version, open the service and choose Manual Deploy, then Deploy latest commit.

Other hosts

Any host that runs a Docker image and allows WebSockets works. Build from the server/ folder with server/Dockerfile; the server listens on the PORT the host gives it (8080 if none) and answers health checks on /healthz. Set ONELOBBY_TRUST_PROXY=true when the host puts a proxy in front. As of October 2026:

This repo ships a one-click file only for Render (render.yaml at the repo root).

This page is generated from the source on GitHub, which is always the latest version.