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

# createProxyByPortConfigs(...args)

Forwards multiple proxies according to a list of ports. Proxy information is taken from existing configured ports. Ports without configuration are skipped.

```javascript
async createProxyByPortConfigs(requestId, plan, ports, n)
```

***

## Parameters

* **requestId** (<mark style="color:green;">string</mark>) – ID used to track request status in event callbacks.
* **plan** (<mark style="color:green;">string</mark>) – ID of the plan to use (default: "1").
* **ports** (<mark style="color:green;">Uint32Array</mark>) – List of ports to forward.
* **n** (<mark style="color:green;">number</mark>) – Number of elements in the ports array.

## Return Value

Depends on binding: typically an array of successfully forwarded ports or a return code (rc).

## Example

```javascript
// example

const ports = new Uint32Array([60000, 60001]);
const ret = sdk.createProxyByPortConfigs("request_id", "1", ports, ports.length);

```
