---
title: "init(address:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/host/init(address:)"
---

# init(address:)

Returns the NSHost with the Internet address address.

## Declaration

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

## Parameters

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

## Return Value

Return Value The host for address.

## See Also

### Creating Hosts

- [current()](foundation/host/current().md)
- [init(name:)](foundation/host/init(name:).md)
