# ITestClusterPortAllocator Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.itestclusterportallocator/)

## AllocateConsecutivePortPairs(int) {#allocateconsecutiveportpairs-int-61f69d8f}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.testinghost/orleans.testinghost.itestclusterportallocator/methods/allocateconsecutiveportpairs-int-61f69d8f/)

```csharp
public abstract (int, int) ITestClusterPortAllocator.AllocateConsecutivePortPairs(int numPorts)
```

Allocates consecutive port pairs.

### Parameters

- `numPorts` (`int`): The number of consecutive ports to allocate.

### Returns

Base ports for silo and gateway endpoints.
