<!--
{
  "availability" : [
    "macOS: 10.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Host/init(address:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSHost(cm)hostWithAddress:"
  },
  "title" : "init(address:)"
}
-->

# init(address:)

Returns the `NSHost` with the Internet address `address`.

```
convenience init(address: String)
```

## Parameters

`address`

Network address to look up. For example, `"127.0.0.1"` or `"fe80::1"`.

## Return Value

The host for `address`.

## Discussion

---

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)