---
title: NWEndpoint.Host
framework: network
role: symbol
role_heading: Enumeration
path: network/nwendpoint/host
---

# NWEndpoint.Host

A name or address that identifies a network endpoint.

## Declaration

```swift
enum Host
```

## Topics

### Creating Hosts

- [init(_:)](network/nwendpoint/host/init(_:).md)

### Accessing Host Types

- [NWEndpoint.Host.name(_:_:)](network/nwendpoint/host/name(_:_:).md)
- [NWEndpoint.Host.ipv4(_:)](network/nwendpoint/host/ipv4(_:).md)
- [NWEndpoint.Host.ipv6(_:)](network/nwendpoint/host/ipv6(_:).md)

### Requiring Interfaces

- [interface](network/nwendpoint/host/interface.md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Host and Ports

- [NWEndpoint.Port](network/nwendpoint/port.md)
