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

# .NET SDK - PeerOptions.MaxPort

# PeerOptions.MaxPort property

The maximum port from which local UDP ports will be allocated.

```csharp
public ushort MaxPort { get; set; }
```

## Remarks

The default value `0` disables the port limit.

## See Also

* class [PeerOptions](./net-sdk-peeroptions)
* namespace [Rainway.SDK.Options](./net-sdk)