---
title: preferredEndpoint
framework: network
role: symbol
role_heading: Instance Property
path: network/nwconnection/establishmentreport/resolution/preferredendpoint
---

# preferredEndpoint

The resolved endpoint that the connection used for its first connection attempt.

## Declaration

```swift
let preferredEndpoint: NWEndpoint
```

## See Also

### Examining Resolved Endpoints

- [successfulEndpoint](network/nwconnection/establishmentreport/resolution/successfulendpoint.md)
- [endpointCount](network/nwconnection/establishmentreport/resolution/endpointcount.md)
