# Sandbox.Network.GameNetworkSystem.OnHostChanged

```csharp
void OnHostChanged(Connection previousHost, Connection newHost)
```

Legacy host-change callback. Override ResyncFromHostAsync to apply the new host's snapshot.
The default ResyncFromHostAsync implementation calls this for existing subclasses.

### Parameters

- `previousHost` (`Connection`)
- `newHost` (`Connection`)

Declared in [Sandbox.Network.GameNetworkSystem](/api/Sandbox.Network.GameNetworkSystem).
Assembly: `Sandbox.Engine`.
