> 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/updateipformatandports.md).

# UpdateIPFormatAndPorts

Update the IP address format and configure a port range.

{% code overflow="wrap" %}

```c
void UpdateIPFormatAndPorts(char* ipFormat, int startPort, int limit)
```

{% endcode %}

***

## Parameters

* **ipFormat**: IP format string (e.g., "127.0.0.1:%d").
* **startPort**: Starting port number.
* **limit**: Number of ports to configure.

## Return Value

Update the IP address format and configure a port range

## Example

```c
// example

UpdateIPFormatAndPorts("127.0.0.1:%d", 60000, 10);

```
