# Sandbox.Network.GameNetworkSystem.AcceptConnection

```csharp
bool AcceptConnection(Connection channel, ref string reason)
```

Called on the host to decide whether to accept a [Sandbox.Connection](/api/Sandbox.Connection).

### Parameters

- `channel` (`Connection`)
- `ref reason` (`string`): The reason to display to the client.

### Returns

`bool`

Declared in [Sandbox.Network.GameNetworkSystem](/api/Sandbox.Network.GameNetworkSystem).
Assembly: `Sandbox.Engine`.
