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

# updateIpFormatAndPorts(...args)

Updates the IP format and the range of ports used by the SDK.

```javascript
updateIpFormatAndPorts(ipFormat, startPort, limit)
```

***

## Parameters

* **ipFormat** (<mark style="color:green;">string</mark>) – Format string (e.g., "127.0.0.1:%d").
* **startPort** (<mark style="color:green;">number</mark>) – Starting port.
* **limit** (<mark style="color:green;">number</mark>) – Number of ports (in some bindings) or endPort (Node-API).

## Return Value

void or number

## Example

```javascript
// example

sdk.updateIpFormatAndPorts("127.0.0.1:%d", 60000, 10);

```
