# getTunnelEndpoint

- Module: [Aspire.Hosting.DevTunnels](/reference/api/typescript/aspire.hosting.devtunnels.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Gets the tunnel endpoint reference for the specified target endpoint.

## Definition

```typescript
interface DevTunnelResource {
  // ... omitted for brevity
  getTunnelEndpoint(targetEndpointReference: EndpointReference): EndpointReference
}
```

## Parameters

- `targetEndpointReference` (`EndpointReference`)

## Returns

`EndpointReference`

## Applies to

- [DevTunnelResource](/reference/api/typescript/aspire.hosting.devtunnels/devtunnelresource.md)
