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

# NWEndpoint

A local or remote endpoint in a network connection.

## Declaration

```swift
enum NWEndpoint
```

## Topics

### Endpoint Types

- [NWEndpoint.hostPort(host:port:)](network/nwendpoint/hostport(host:port:).md)
- [NWEndpoint.service(name:type:domain:interface:)](network/nwendpoint/service(name:type:domain:interface:).md)
- [NWEndpoint.url(_:)](network/nwendpoint/url(_:).md)
- [NWEndpoint.unix(path:)](network/nwendpoint/unix(path:).md)

### Host and Ports

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

### Internet Addresses

- [IPAddress](network/ipaddress.md)
- [IPv4Address](network/ipv4address.md)
- [IPv6Address](network/ipv6address.md)

### Endpoint Properties

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

### Enumeration Cases

- [NWEndpoint.opaque(_:)](network/nwendpoint/opaque(_:).md)

### Initializers

- [init(copying:newPort:)](network/nwendpoint/init(copying:newport:).md)

### Instance Properties

- [txtRecord](network/nwendpoint/txtrecord.md)
- [wifiAware](network/nwendpoint/wifiaware.md)

### Instance Methods

- [wifiAware(port:)](network/nwendpoint/wifiaware(port:).md)

## Relationships

### Conforms To

- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Essentials

- [NWParameters](network/nwparameters.md)
