Using NetService (Bonjour) to enable network discovery in your app.
This is a maintained derivative fork of Ciao.
Bonjour, also known as zero-configuration networking, enables automatic discovery of devices and services on a local network using industry standard IP protocols. Bonjour makes it easy to discover, publish, and resolve network services with a sophisticated, easy-to-use programming interface that is accessible from Cocoa, Ruby, Python, and other languages. Bonjour - Apple Developer
To use SwiftBonjour as a Swift Package Manager package just add the following in your Package.swift file.
dependencies: [
.package(url: "https://github.com/Lessica/SwiftBonjour.git")
]
SwiftBonjour is released under the MIT license. See LICENSE for details.