Search code examples
c#.netnetwork-programmingudpbonjour

advertise self on the network in order to be discovered by other app using Bonjour


I am planning to put together a small .NET using C# for Windows app. The app needed to advertise itself on the network so anther app (iOS app) can discover it using Bonjour. But I do not wish to use Apple's Bonjour SDK for Windows for the reason that I have posted in this SO . This Windows app does not need to discover other devices. It only needed to be discovered. Can it be done? If so, sample code or some steps needed to be follow would be appreciated.


Solution

  • Mono.Zeroconf provides a managed API for Bonjour services. It can use either the Apple Bonjour transport or the open-source Avahi.

    It is a full abstraction that is independent of provider.

    They have an example on how to register services on the main page.