<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_endpoint_type_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@EA@nw_endpoint_type_t"
  },
  "title" : "nw_endpoint_type_t"
}
-->

# nw_endpoint_type_t

The type of a network endpoint, such as a host or a service.

```
struct nw_endpoint_type_t
```

## Topics

### Endpoint Types

[`nw_endpoint_type_invalid`](/documentation/Network/nw_endpoint_type_invalid)

An undefined endpoint type.

[`nw_endpoint_type_address`](/documentation/Network/nw_endpoint_type_address)

An endpoint represented as an IP address and port.

[`nw_endpoint_type_host`](/documentation/Network/nw_endpoint_type_host)

An endpoint represented as a hostname and port.

[`nw_endpoint_type_bonjour_service`](/documentation/Network/nw_endpoint_type_bonjour_service)

An endpoint represented as a Bonjour service.

[`nw_endpoint_type_url`](/documentation/Network/nw_endpoint_type_url)

An endpoint represented as a URL, with host and port values inferred from the URL.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)