# DevTunnelPortOptions Properties

- Package: [Aspire.Hosting.DevTunnels](/reference/api/csharp/aspire.hosting.devtunnels.md)
- Type: [DevTunnelPortOptions](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions.md)
- Kind: `Properties`
- Members: `4`

Options for a dev tunnel port.

## AllowAnonymous

- Name: `AllowAnonymous`
- Modifiers: `nullable` `get; set`
- Returns: `bool?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelOptions.cs)

Whether to allow anonymous access to this port. If `null`, defaults to the parent tunnel's setting. Defaults to `null`.

```csharp
public bool? AllowAnonymous { get; set; }
```

## Description

- Name: `Description`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelOptions.cs)

A description for this port within the dev tunnel.

```csharp
public string? Description { get; set; }
```

## Labels

- Name: `Labels`
- Modifiers: `nullable` `get; set`
- Returns: `List<string>`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelOptions.cs)

Optional labels to attach to this tunnel port.

```csharp
public List<string>? Labels { get; set; }
```

## Protocol

- Name: `Protocol`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelOptions.cs)

Protocol type to expose. "http", "https", or "auto". Defaults to match scheme of exposed endpoint.

```csharp
public string? Protocol { get; set; }
```
