# ClientMessagingOptions Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/)

## ClientSenderBuckets {#clientsenderbuckets-257ecf61}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/properties/clientsenderbuckets-257ecf61/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/ClientMessagingOptions.cs)

```csharp
public int ClientSenderBuckets
```

Gets or sets the total number of grain buckets used by the client in client-to-gateway communication protocol. In this protocol, grains are mapped to buckets and buckets are mapped to gateway connections, in order to enable stickiness of grain to gateway (messages to the same grain go to the same gateway, while evenly spreading grains across gateways). This number should be about 10 to 100 times larger than the expected number of gateway connections. If this attribute is not specified, then Math.Pow(2, 13) is used.

## LocalAddress {#localaddress-c7a1161f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/properties/localaddress-c7a1161f/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/ClientMessagingOptions.cs)

```csharp
public IPAddress LocalAddress
```

Gets or sets the IP address used for cluster client.

## NetworkInterfaceName {#networkinterfacename-292dcd2a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/properties/networkinterfacename-292dcd2a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/ClientMessagingOptions.cs)

```csharp
public string NetworkInterfaceName
```

Gets or sets the name of the network interface to use to work out an IP address for this machine.

## PreferredFamily {#preferredfamily-5e9f2262}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.configuration.clientmessagingoptions/properties/preferredfamily-5e9f2262/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core/Configuration/Options/ClientMessagingOptions.cs)

```csharp
public AddressFamily PreferredFamily
```

Gets or sets the preferred `System.Net.Sockets.AddressFamily` to be used when determining an appropriate client identity.
