---
title: "NWEndpoint.hostPort(host:port:)"
framework: network
role: symbol
role_heading: Case
path: "network/nwendpoint/hostport(host:port:)"
---

# NWEndpoint.hostPort(host:port:)

An endpoint represented as a host and port, with the host including both names and addresses.

## Declaration

```swift
case hostPort(host: NWEndpoint.Host, port: NWEndpoint.Port)
```

## See Also

### Endpoint Types

- [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)
