# DevTunnelPortOptions

- Kind: `class`
- Package: [Aspire.Hosting.DevTunnels](/reference/api/csharp/aspire.hosting.devtunnels.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.DevTunnels`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelOptions.cs)

Options for a dev tunnel port.

## Definition

```csharp
namespace Aspire.Hosting.DevTunnels;

public sealed class DevTunnelPortOptions
{
    // ...
}
```

## Constructors

- [DevTunnelPortOptions](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions/constructors.md#constructor)

## Properties

- [AllowAnonymous](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions/properties.md#allowanonymous) : `bool?` `get; set` -- Whether to allow anonymous access to this port. If `null`, defaults to the parent tunnel's setting. Defaults to `null`.
- [Description](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions/properties.md#description) : `string?` `get; set` -- A description for this port within the dev tunnel.
- [Labels](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions/properties.md#labels) : `List<string>` `get; set` -- Optional labels to attach to this tunnel port.
- [Protocol](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions/properties.md#protocol) : `string?` `get; set` -- Protocol type to expose. "http", "https", or "auto". Defaults to match scheme of exposed endpoint.
