<!--
{
  "availability" : [
    "iOS: 9.0.0 - 18.0.0",
    "iPadOS: 9.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.11.0 - 15.0.0",
    "tvOS: 17.0.0 - 18.0.0",
    "visionOS: 1.0.0 - 2.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "NetworkExtension",
  "identifier" : "/documentation/NetworkExtension/NWBonjourServiceEndpoint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Network Extension"
    ],
    "preciseIdentifier" : "c:objc(cs)NWBonjourServiceEndpoint"
  },
  "title" : "NWBonjourServiceEndpoint"
}
-->

# NWBonjourServiceEndpoint

A network endpoint specified as a Bonjour service name, type, and domain.

```
class NWBonjourServiceEndpoint
```

## Overview

For example, the Bonjour service `MyMusicStudio._music._tcp.local.` has the name
`"MyMusicStudio"`, the type `"_music._tcp"`, and the domain `"local"`.

## Topics

### Initializing Bonjour service endpoints

[`+  endpointWithName:type:domain:`](/documentation/NetworkExtension/NWBonjourServiceEndpoint/init(name:type:domain:))

Create an endpoint with a Bonjour service name, type, and domain. All fields must be specified.

### Getting endpoint properties

[`name`](/documentation/NetworkExtension/NWBonjourServiceEndpoint/name)

The endpoint’s Bonjour service name.

[`type`](/documentation/NetworkExtension/NWBonjourServiceEndpoint/type)

The endpoint’s Bonjour service type.

[`domain`](/documentation/NetworkExtension/NWBonjourServiceEndpoint/domain)

The endpoint’s Bonjour service domain, such as `"local"`.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NWEndpoint`](/documentation/NetworkExtension/NWEndpoint)

---

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)