What does a Steam lobby do?
It finds and holds a group until the match starts. Valve describes a lobby as an entity on the Steam back end that "is a lot like a chat room": players create one, attach data to it, search for lobbies by that data, join, and message the other members. One lobby holds up to 250 users, "although typically most games have at most 2-16 players".
The usual flow is to search for a lobby with matching rules, join it if one exists and create one if not, wait until enough players are ready, then connect to the host or a server and leave the lobby. A lobby is destroyed when its last member leaves.
Sources: Steamworks Matchmaking & Lobbies documentation.
Which lobby type should you pick?
Public for matchmaking with strangers, friends only or private for co-op with people you know. A search returns only lobbies that are public or invisible, not full, and set as joinable. Searches take "from 300ms to 5 seconds", time out after 20 seconds, return up to 50 lobbies sorted by distance, and default to nearby lobbies only.
| GodotSteam constant | Valve's description |
|---|---|
| LOBBY_TYPE_PRIVATE | The only way to join the lobby is from an invite |
| LOBBY_TYPE_FRIENDS_ONLY | Joinable by friends and invitees, but does not show up in the lobby list |
| LOBBY_TYPE_PUBLIC | Returned by search and visible to friends |
| LOBBY_TYPE_INVISIBLE | Returned by search, but not visible to other friends |
Sources: Steamworks ISteamMatchmaking reference and Matchmaking & Lobbies documentation; GodotSteam Matchmaking class.
How do you create, find and join a lobby in Godot?
With four GodotSteam calls and their signals. createLobby() takes the lobby type and the maximum members, and answers with lobby_created; Valve says the host should then set lobby data that other clients can search for, and only the lobby owner can set it. requestLobbyList() answers with lobby_match_list, and joinLobby() with lobby_joined. The autoload below follows the GodotSteam Lobbies tutorial (last updated 24 June 2026), written as one script.
Two details trip people up. Filters such as addRequestLobbyListStringFilter() apply only to the next requestLobbyList() call, so add them every time. And the host also receives lobby_joined after creating a lobby, so put the shared setup there.
lobby.gd (GodotSteam for Godot 4)
# lobby.gd, an autoload. Steam is already initialised with Steam.steamInitEx()
# and Steam.run_callbacks() runs every frame (see the GodotSteam achievements guide).
extends Node
const GAME_TAG: String = "my_game_v1" # filters out other games' lobbies on app ID 480
const MAX_MEMBERS: int = 4 # Steam allows up to 250
var lobby_id: int = 0
func _ready() -> void:
Steam.lobby_created.connect(_on_lobby_created)
Steam.lobby_joined.connect(_on_lobby_joined)
Steam.lobby_match_list.connect(_on_lobby_match_list)
Steam.join_requested.connect(_on_join_requested)
_check_command_line()
func host() -> void:
Steam.createLobby(Steam.LOBBY_TYPE_PUBLIC, MAX_MEMBERS)
func find() -> void:
Steam.addRequestLobbyListStringFilter("game", GAME_TAG, Steam.LOBBY_COMPARISON_EQUAL)
Steam.addRequestLobbyListDistanceFilter(Steam.LOBBY_DISTANCE_FILTER_WORLDWIDE)
Steam.requestLobbyList()
func _on_lobby_created(result: int, new_lobby_id: int) -> void:
if result != Steam.RESULT_OK:
push_error("Lobby not created: %s" % result)
return
Steam.setLobbyData(new_lobby_id, "game", GAME_TAG)
Steam.setLobbyData(new_lobby_id, "name", Steam.getPersonaName())
func _on_lobby_match_list(lobbies: Array) -> void:
for id in lobbies:
print(id, " ", Steam.getLobbyData(id, "name"), " ", Steam.getNumLobbyMembers(id))
if lobbies.size() > 0:
Steam.joinLobby(lobbies[0])
func _on_join_requested(requested_lobby_id: int, _friend_id: int) -> void:
Steam.joinLobby(requested_lobby_id) # invite accepted while the game runs
func _check_command_line() -> void:
# Steam starts the game with +connect_lobby <lobby ID> when an invite is accepted outside it.
var args: PackedStringArray = OS.get_cmdline_args()
var i: int = args.find("+connect_lobby")
if i != -1 and i + 1 < args.size():
Steam.joinLobby(int(args[i + 1]))Sources: GodotSteam Lobbies tutorial and Matchmaking class; Steamworks Matchmaking & Lobbies documentation.
How do players join from a Steam invite?
Two ways, depending on whether the game is running. If it is, accepting an invite or choosing Join Game in the friends list emits join_requested with the lobby ID, and you call joinLobby(). If it is not, Steam launches the game with the command line parameter +connect_lobby followed by the 64-bit lobby ID, which _check_command_line() in the code above reads at start. Players invite friends from the Steam overlay; GodotSteam exposes it as activateGameOverlayInviteDialog().
Sources: Steamworks ISteamMatchmaking reference; GodotSteam Lobbies tutorial and Friends class.
How do you connect players for the match?
With SteamMultiplayerPeer, so Godot's high-level multiplayer runs over Steam. GodotSteam's tutorial (last updated 2 June 2026) makes the lobby owner the server, which "always has a peer ID of 1", and each client connects with the owner's Steam ID, since connections "require Steam IDs instead of IP addresses like ENet". With server_relay set to true, clients talk only through the host, and players can still join after the host has loaded the game scene.
From there, RPCs, MultiplayerSpawner and MultiplayerSynchronizer work as in the Godot documentation. GodotSteam notes that its server builds do not contain MultiplayerPeer yet, so this setup is for player-hosted games.
Add to lobby.gd: start the Steam peer when the lobby is joined
func _on_lobby_joined(joined_lobby_id: int, _permissions: int, _locked: bool, response: int) -> void:
if response != Steam.CHAT_ROOM_ENTER_RESPONSE_SUCCESS:
push_error("Could not join lobby: %s" % response)
return
lobby_id = joined_lobby_id
var peer := SteamMultiplayerPeer.new()
var owner_id: int = Steam.getLobbyOwner(lobby_id)
if owner_id == Steam.getSteamID():
peer.create_host(0) # the lobby owner is the server, peer ID 1
else:
peer.create_client(owner_id, 0) # Steam IDs, not IP addresses
peer.server_relay = true # clients talk through the host
multiplayer.multiplayer_peer = peerSources: GodotSteam Multiplayer Peer tutorial; Godot high-level multiplayer documentation.
How do you test lobbies before you have an app ID?
With Valve's test app 480 (Spacewar) and a data tag. GodotSteam warns that app ID 480 "will often be flooded with lots of other lobbies that are not yours", which is why the code sets a game tag and filters on it. Switch to your own app ID before any public build, and then the filter only has to tell your game modes apart.
Our practice: test with two Steam accounts on two machines, one hosting and one joining, and test the invite path with the game closed as well as running, since players join both ways from the friends list.
- Put your game on Steam by engine: Unity, Godot, Unreal, GameMaker, Construct, RPG Maker →
- Steam Cloud saves: Auto-Cloud or the Cloud API, with Godot and Unity paths →
Sources: GodotSteam Lobbies tutorial; our practice.
How to measure the result
Manalens is the analytics and growth engine built for games. With the Godot SDK, send your own events at each step, for example Manalens.track("lobby_created", {"type": "public"}), then lobby_joined and match_started. A funnel of those events shows where groups fall apart: hosts who never get a second player, or lobbies that fill but never start.
Sources: Manalens Godot SDK and funnels documentation.
Frequently asked questions
How many players can join a Steam lobby?
Up to 250 users per lobby, according to Valve's Matchmaking documentation, although it says most games have at most 2 to 16 players. Set your own limit with the maximum members argument of createLobby(). The limit covers the lobby only; your network code decides how many players a match can actually handle.
Can I test Steam lobbies without my own app ID?
Yes, with app ID 480, Valve's Spacewar test app. GodotSteam warns that it is flooded with other developers' lobbies, so set a lobby data tag such as your game's name and filter on it with addRequestLobbyListStringFilter(). Switch to your own app ID before you share any build with players.
Does SteamMultiplayerPeer need port forwarding?
No. Clients connect with the host's Steam ID rather than an IP address, through Steam's networking, so players do not open ports. GodotSteam's tutorial makes the lobby owner the server with peer ID 1 and recommends server_relay so clients talk through the host. Its dedicated server builds do not support MultiplayerPeer yet.
How does a friend join from a Steam invite?
If the game is running, GodotSteam emits join_requested with the lobby ID and you call joinLobby(). If it is closed, Steam launches the game with +connect_lobby and the lobby ID on the command line, which your startup code must read and pass to joinLobby(). Test both paths before release.
Sources and implementation
- Steamworks documentation: Steam Matchmaking & Lobbies (Valve, read 24 November 2026) ↗
- Steamworks API reference: ISteamMatchmaking (Valve, read 24 November 2026) ↗
- GodotSteam documentation: Tutorials, Lobbies (last updated 24 June 2026, read 24 November 2026) ↗
- GodotSteam documentation: Tutorials, Multiplayer Peer (last updated 2 June 2026, read 24 November 2026) ↗
- GodotSteam documentation: Matchmaking class (read 24 November 2026) ↗
- GodotSteam documentation: Friends class (read 24 November 2026) ↗
- Godot documentation: High-level multiplayer (Godot Engine, stable, read 24 November 2026) ↗