# EndpointOptionsExtensions.ConfigureEndpoints(ISiloBuilder, 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/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Hosting/EndpointOptionsExtensions.cs#L90)

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

Configure endpoints for the silo.

### Parameters

- `builder` (`ISiloBuilder`): The host builder to configure.
- `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.
