# EndpointOptionsExtensions.ConfigureEndpoints(ISiloBuilder, string?, int, int, AddressFamily, bool)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.hosting.endpointoptionsextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.hosting.endpointoptionsextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/b7a9e3e1c9c54b3cec3a467c5734bf7744541bcf/src/Orleans.Runtime/Hosting/EndpointOptionsExtensions.cs#L63-L70)

```csharp
public static ISiloBuilder ConfigureEndpoints(this ISiloBuilder builder, string? hostname, int siloPort, int gatewayPort, AddressFamily addressFamily = AddressFamily.InterNetwork, bool listenOnAnyHostAddress = false)
```

Configure endpoints for the silo.

### Parameters

- `builder` (`ISiloBuilder`): The host builder to configure.
- `hostname` (`string?`): The host name the silo is running on.
- `siloPort` (`int`): The port this silo uses for silo-to-silo communication.
- `gatewayPort` (`int`): The port this silo uses for client-to-silo (gateway) communication. Specify 0 to disable gateway functionality.
- `addressFamily` (`AddressFamily`): Address family to listen on. Default IPv4 address family.
- `listenOnAnyHostAddress` (`bool`): Set to true to listen on all IP addresses of the host instead of just the advertiseIP.
