# Sandbox.NetworkingSettings

A class that holds all configured networking settings for a game.
This is serialized as a config and shared from the server to the client.

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.ConfigData](/api/Sandbox.ConfigData)

## Constructors

- [`NetworkingSettings`](/api/Sandbox.NetworkingSettings/.ctor)

## Properties

- [`AutoSwitchToBestHost`](/api/Sandbox.NetworkingSettings/AutoSwitchToBestHost): Whether to periodically switch to the best host candidate. Candidates are scored based on their average ping and connection quality to all other peers.
- [`ClientsCanDestroyObjects`](/api/Sandbox.NetworkingSettings/ClientsCanDestroyObjects): By default, can clients destroy objects. This can be changed per connection after join.
- [`ClientsCanRefreshObjects`](/api/Sandbox.NetworkingSettings/ClientsCanRefreshObjects): By default, can clients refresh objects. This can be changed per connection after join.
- [`ClientsCanSpawnObjects`](/api/Sandbox.NetworkingSettings/ClientsCanSpawnObjects): By default, can clients create objects. This can be changed per connection after join.
- [`DestroyLobbyWhenHostLeaves`](/api/Sandbox.NetworkingSettings/DestroyLobbyWhenHostLeaves): Whether to disband the game lobby when the host leaves.
- [`UpdateRate`](/api/Sandbox.NetworkingSettings/UpdateRate): The frequency at which the network system will send updates to clients. Higher is better but you probably want to stay in the 10-60 range.
