Bonjour, also known as zero-configuration networking, enables automatic discovery of devices and services on a local network using industry standard.

Posts under Bonjour tag

49 Posts
Sort by:
Post marked as solved
2 Replies
444 Views
Hi, I'm trying to use the Multipeer Connectivity framework in my latest app to create a mesh network between many devices (20+). I only plan to have each device connected to at most 4 other devices to avoid the limitations of the MC framework. However, when testing it out I found that when connecting multiple peers together, the MCSessions seemed to sync up. I.e. when I had device 1 connect to device 2, and then device 1 connect to device 3, automatically device 2 would connect to device 3. Is there any way to prevent these automatic connections from forming between devices? I am using swift 5 / iOS 14 Thanks
Posted
by kfreitag.
Last updated
.
Post not yet marked as solved
3 Replies
492 Views
I am building app for MacOS to advertise using bonjour but non of the other mDNS is able to resolve service. I have added Privacy - Local Network Usage Description to plist. I have added BonjourServices like this: _myservice._tcp.local. _myservice._tcp. I was trying to use both NetService as well as NWListener.Service with the same result. It only publishes type and no other informations. I tried other implementations of mDNS. I tried java and android and both works as expected and works fine except they can't find NetService event through NetService can find them. I feel like I looked up whole internet already with no luck. I also tried to use dns-sd tool to discover more and it does find them but with interesting results, because it returns -1 interface. What else can I try? edit. I have more insights. I can't event properly register service using dns-sd on my macbook with Big Sur but on my partners with Catalina no problem everything works as expected.
Posted
by jakubbb.
Last updated
.
Post not yet marked as solved
9 Replies
740 Views
Hi, I am implementing an iPhone/iPad and mac app that allows users to send each other messages using the bonjour protocol. Basically, a server publishes his service over bonjour and the clients connected to the same wifi can discover his service and connect to it to start sending messages, it works fine with client and service communication but if I want to achieve peer to peer communication between multiple devices then I don't know how can I get list of connected Devices in network and how multiple devices can communicate with each other like peer to peer connectivity without using server/host? So how can be this possible?
Posted Last updated
.
Post not yet marked as solved
4 Replies
926 Views
Hi, I am using mDNS to discover local peers (iOS, Mac, Linux, Windows, Android) to be able to do file transfers among them. The mDNS part is a Rust lib shared among the platforms. I understand that using mDNS(Bonjour) doesn't require any special entitlement (multicast one). When I run this on iOS, I am able to read mDNS peers publishing the same service but I am not able to respond to queries in the Rust lib, it fails with (no route to host, I am not able to write to the mDNS multicast address). Even though I am publishing the service defined in Info.plist and I am asking for local network permissions. It's not really possible for me to special case iOS here since the whole networking stack is in Rust. I am at a loss trying to understand what I am doing wrong. I would much rather not ask for the multicast entitlement as that doesn't seem required anyway. Please help.
Posted
by eklavya.
Last updated
.
Post not yet marked as solved
3 Replies
502 Views
Hello, We provide a cross-platform network communication library to our customers, implementing secure application level tunnelling (and more) for use primarily in IoT scenarios. The library is implemented in C++. For discovering local devices, we have used a custom mDNS implementation based on raw BSD sockets - with the iOS 14.5 restrictions this is apparently no longer possible and we are looking for alternative options. However, we cannot find a non-deprecated way to obtain the local UDP IP address and port number of discovered services. The NSNetService API is deprecated and the NWBrowser API only gives you the service names for use with NWConnection (the latter is not applicable due to the cross-platform implementation of our proprietary protocol). Are there any (clean) way to obtain a local service's IP address and port number for use with lower level implementations like ours? Or do we have to resort to a hack where we stuff the normal A and AAAA record contents + port number into TXT records that apparently are ok to retrieve with NWBrowser? Thanks for clarifying! Ulrik, Nabto
Posted
by gammelby.
Last updated
.
Post not yet marked as solved
2 Replies
421 Views
Hi I have a peer to peer VoIP application for iOS and I am using bonjour protocol to discover devices in a LAN. Everything works well, but when the application is put in background the bonjour service is stopped and the service is removed from the other peers list. Is there a way to keep the bonjour service running while the application is in background ? thank you Bogdan
Posted
by cristeab.
Last updated
.
Post not yet marked as solved
1 Replies
265 Views
Hello, We are considering to use Bonjour stack on our product based on VxWorks/ARM platform. Can you please clarify the below questions? Where can I get the latest source for the stack? Is there a commercial support available for the stack? When we run Klockwork(static analysis) tool, we see a lot of defects. Is there any plan to fix these issues? Thank you for the response in advance.
Posted
by dyad_app.
Last updated
.