# Sandbox.Networking.MaxPlayers

```csharp
static int MaxPlayers { get; set; }
```

The maximum number of players allowed on the server you're connected to.

Declared in [Sandbox.Networking](/api/Sandbox.Networking).
Assembly: `Sandbox.Engine`.
