> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-native-c/functions/setrangeport.md).

# SetRangePort

Define a range of ports for the SDK to manage.

```c
void SetRangePort(int startPort, int limit)
```

***

## Parameters

* **startPort**: Starting port.
* **limit**: Number of ports to allocate (from startPort to startPort+limit-1).

## Return Value

void

## Example

```c
SetRangePort(60000, 10);
```
