---
agentTools:
  projectIndex: https://docs.rainway.com/llms.txt
---

# Node.js SDK - PeerOptions

[Home](https://docs.rainway.com/reference/about) > [@rainway/native](nodejs-sdk) > [PeerOptions](./nodejs-sdk-peeroptions)

## PeerOptions interface

Options for configuring a Peer.

<b>Signature:</b>

```typescript
export interface PeerOptions 
```

## Properties

| Property                                    | Type   | Description                                                                                                                                                                                                                                                               |
| ------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [maxPort](./nodejs-sdk-peeroptions-maxport) | number | The maximum port from which local UDP ports will be allocated. The default value <code>0</code> disables the port limit.                                                                                                                                                  |
| [minPort](./nodejs-sdk-peeroptions-minport) | number | The minimum port from which local UDP ports will be allocated. The default value <code>0</code> means a port will be allocated from the dynamic client port range. See <https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-bind> for more information. |