<!--
{
  "availability" : [
    "iOS: 4.2.0 -",
    "iPadOS: 4.2.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMIDI",
  "identifier" : "/documentation/CoreMIDI/MIDINetworkHost/init(name:address:port:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core MIDI"
    ],
    "preciseIdentifier" : "c:objc(cs)MIDINetworkHost(cm)hostWithName:address:port:"
  },
  "title" : "init(name:address:port:)"
}
-->

# init(name:address:port:)

Creates a host with the specified name, adress, and port.

```
convenience init(name: String, address: String, port: Int)
```

## Parameters

`name`

The host name.

`address`

The host’s IP address or hostname.

`port`

The host’s UDP port.

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