---
title: host
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlprotectionspace/host
---

# host

The receiver’s host.

## Declaration

```swift
var host: String { get }
```

## Mentioned in

Performing manual server trust authentication

## See Also

### Getting protection space properties

- [authenticationMethod](foundation/urlprotectionspace/authenticationmethod.md)
- [distinguishedNames](foundation/urlprotectionspace/distinguishednames.md)
- [port](foundation/urlprotectionspace/port.md)
- [protocol](foundation/urlprotectionspace/protocol.md)
- [proxyType](foundation/urlprotectionspace/proxytype.md)
- [realm](foundation/urlprotectionspace/realm.md)
- [receivesCredentialSecurely](foundation/urlprotectionspace/receivescredentialsecurely.md)
- [serverTrust](foundation/urlprotectionspace/servertrust.md)
