s&box Lobby Config Builder
Configure a s&box LobbyConfig (MaxPlayers, Privacy, Name) and copy the matching Networking.CreateLobby, QueryLobbies, and Networking.Connect snippets. Beginner-friendly s&box multiplayer onboarding for the new C# game framework.
s&box server hosting from XGamingServer — instant setup, DDoS protection, mod support, and 24/7 help. 30% off your first month.
MaxPlayers includes the host. 8–32 is typical for s&box gamemodes.
Leave unset to use the engine default. Three states: unset · true · false.
DestroyWhenHostLeavesAutoSwitchToBestHostHiddenWhat is a s&box Lobby?
In s&box, multiplayer is organised around lobbies — a small group of connected players sharing a scene. The host creates the lobby, declares its capacity and privacy, and gives it a name; other players either discover it through Networking.QueryLobbies() or jump in directly with a lobby ID via Networking.Connect( lobbyId ).
Facepunch's networking is purposefully simple— their docs say the goal isn't a bullet-proof server-authoritative stack, it's a system that's easy to use and understand. Lobbies are the entry point.
LobbyConfig Fields
All 6 fields, pulled directly from the s&box C# API schema (Sandbox.Network.LobbyConfig).
| Field | Type | Notes |
|---|---|---|
| DestroyWhenHostLeaves | bool | Whether to automatically destroy this lobby when the host leaves. This is only applicable to P2P lobbies. |
| AutoSwitchToBestHost | bool | Whether to periodically switch to the best possible host candidate. This is only applicable to P2P lobbies. |
| Hidden | bool | Whether to hide this lobby from appearing in the server list. It will still be queryable programatically, so long as the <see cref="P:Sandbox.Network.LobbyConfig.Privacy" /> mode allows it. |
| Privacy | LobbyPrivacy | Determines who is able to connect to this lobby. This will be public by default. |
| MaxPlayers | int | The maximum amount of players this lobby can hold. By default, this will be the Max Players set in the current Game Package's project settings. |
| Name | string | The name of this lobby. If this isn't set, a default lobby name will be chosen instead. |
Common Patterns
Spawn a player on join
public sealed class GameNetworkManager : Component, Component.INetworkListener
{
[Property] public GameObject PlayerPrefab { get; set; }
[Property] public GameObject SpawnPoint { get; set; }
public void OnActive( Connection connection )
{
var player = PlayerPrefab.Clone( SpawnPoint.Transform.World );
player.NetworkSpawn( connection );
}
}Browse and join
var lobbies = await Networking.QueryLobbies();
foreach ( var lobby in lobbies )
{
Log.Info( $"{lobby.Name} - {lobby.MemberCount}/{lobby.MaxMembers}" );
}
// Join the first one we found.
if ( lobbies.Any() )
{
Networking.Connect( lobbies.First().LobbyId );
}s&box Lobby Config Builder — FAQ
Is this s&box Lobby Config Builder free to use?
Yes, the s&box Lobby Config Builder is 100% free — no signup required, no hidden fees, no downloads. Everything runs in your browser.
How accurate is the s&box Lobby Config Builder?
Values are pulled from the s&box game files and community-verified formulas. Results match what you see in-game, and we update the tool when the game gets major patches.
Can I host a s&box server with XGamingServer?
Yes. XGamingServer offers instant s&box server hosting with mod support, automatic backups, DDoS protection, and 24/7 support. All popular game settings are pre-configured.
Does the Lobby Config Builder work on mobile?
Yes, the Lobby Config Builder is fully responsive and works on desktop, tablet, and mobile browsers.
You might also need
Steam ID Resolver
Convert any Steam profile URL, vanity URL, SteamID2 (STEAM_0:0:...), or SteamID3 ([U:1:...]) into the SteamID64 format that users/config.json and most server tools require. All formats shown side-by-side with copy buttons.
Launch Command Builder
Build the exact sbox-server.exe launch command — +game (published or local .sbproj), +hostname, +port, +net_query_port, +net_game_server_token, optional map package. Validates branch (main/staging) requirements and outputs ready-to-run Run-Server.bat / run-server.sh.
SteamCMD Builder
Generate copy-paste SteamCMD install/update scripts for the s&box Dedicated Server (app 1892930). Main vs staging branch toggle, validate option, anonymous login, side-by-side Windows .bat and Linux .sh.
ConCmd / ConVar Generator
Generate s&box [ConCmd] console-command and [ConVar] console-variable C# snippets. All 11 ConVarFlags (Server, Saved, Replicated, Cheat, UserInfo, Hidden, Admin, GameSetting, etc.) pulled live from the official Facepunch C# API schema. Optional Connection caller hook for admin-tracking, plus Help / Min / Max constraints for variables. The backbone of every s&box admin script and debug tool.
s&box server admin docs
Read the full s&box server docs →
Step-by-step guides for installing mods, configuring your server, joining, troubleshooting, and admin commands.

Ready to play?
Run your own s&box server with XGamingServer
Instant setup, mods & plugins, DDoS protection and 24/7 human support — your server is live in minutes, no port-forwarding required.
Pick your plan
See all plans
s&box Server Hosting
Get managed s&box server hosting with this tool built into your panel — configure, deploy, and play in minutes. Instant setup, DDoS protection, 24/7 support.