# Sandbox.SceneNetworkSystem.AcceptConnection

```csharp
bool AcceptConnection(Connection channel, ref string reason)
```

Called on the host to decide whether to accept a [Sandbox.Connection](/api/Sandbox.Connection). If any [Sandbox.Component](/api/Sandbox.Component)
that implements this returns false, the connection will be denied.

### Parameters

- `channel` (`Connection`)
- `ref reason` (`string`): The reason to display to the client.

### Returns

`bool`

Declared in [Sandbox.SceneNetworkSystem](/api/Sandbox.SceneNetworkSystem).
Assembly: `Sandbox.Engine`.
