xgaming.tools

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.

MaxPlayers includes the host. 8–32 is typical for s&box gamemodes.

Leave unset to use the engine default. Three states: unset · true · false.

DestroyWhenHostLeaves
AutoSwitchToBestHost
Hidden

What 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).

FieldTypeNotes
DestroyWhenHostLeavesboolWhether to automatically destroy this lobby when the host leaves. This is only applicable to P2P lobbies.
AutoSwitchToBestHostboolWhether to periodically switch to the best possible host candidate. This is only applicable to P2P lobbies.
HiddenboolWhether 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.
PrivacyLobbyPrivacyDetermines who is able to connect to this lobby. This will be public by default.
MaxPlayersintThe 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.
NamestringThe 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

Built-In Tool

Config Tool Built Into XGamingServer

Get managed s&box hosting with this tool in your panel — configure, deploy, and play in minutes. No file uploads needed.

Built-In Config ToolInstant Server SetupDDoS ProtectionExpert 24/7 Support
Get 40% OFFNo setup fees · Cancel anytime