# DevTunnelPortResource Properties

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

A resource representing a single forwarded endpoint/port on a dev tunnel. Contains an endpoint that resolves to the public tunnel URL of this port.

## DevTunnel

- Name: `DevTunnel`
- Modifiers: `get`
- Returns: [DevTunnelResource](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelresource.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelResource.cs#L78)

The dev tunnel this port belongs to.

```csharp
public DevTunnelResource DevTunnel { get; }
```

## Options

- Name: `Options`
- Modifiers: `get`
- Returns: [DevTunnelPortOptions](/reference/api/csharp/aspire.hosting.devtunnels/devtunnelportoptions.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.DevTunnels/DevTunnelResource.cs#L83)

Options controlling how this port is exposed.

```csharp
public DevTunnelPortOptions Options { get; }
```
