Questions tagged [bonjour]
Bonjour is Apple's implementation of Zeroconf, a service discovery protocol. It can be used to find services on a network and also to publish services to be found by other Zeroconf clients.
573
questions
0
votes
0
answers
14
views
Android: Bonjour printer discovery fails & network seems slow until device reboots
I'm working on an Android app that uses the jmDNS library to discover Bonjour printers on the network. Most of the time it is able to successfully discover printers, but sometimes it does not. The ...
0
votes
0
answers
43
views
iOS / HTTP Server communication, device to device
In the past few days, I've been reading a lot of articles and Stackoverflow questions.
We are looking to transfer data between a Windows IOT PC and an iPad. We would like a HTTP Server, without using ...
0
votes
0
answers
48
views
In Avahi-discover command the previous services with new services are showing, how can i remove previous servious
When i'm connecting the device to router and doing avahi-discover, it seems previous services are also showing, with new services, i 'm restarting avahi-daemon and dbus before avahi-publish -sv ...
0
votes
0
answers
64
views
npm Bonjour not finding services on other devices on the same wifi
Hello i am a beginner in coding, the notion of my project is to have a connection between ios and windows to be able to send file across from ios to windows, my idea to implement this would be through ...
1
vote
0
answers
33
views
How to properly set protocols for Android and iOS communication work via socket?
We're doing an app where Android and Mac send messages between each other. So far we managed to handle Android <-> Android, iOS <-> iOS and MacOS <-> iOS. We used Bonjour (NSD in ...
0
votes
0
answers
26
views
Is there an upper limit with DNS-SD records
I have been banging my head against this problem for a while now and I wonder if anyone is able to point me in the right direction.
I have been trying to implement DNS-SD discovery in an MFC ...
0
votes
0
answers
229
views
Bonjour trouble using iOS 15, detecting "Local Network" setting
Starting with iOS 15 (and maybe iOS 14), I had been having trouble getting Bonjour to work (it's working now). I am using MCSession, MCAdvertiserAssistant, and MCNearbyServiceBrowser. None of my ...
1
vote
1
answer
47
views
Promisify function that does not exit
I am attempting to util.promisify the bonjour npm package. This is the original use case described in the docs:
var bonjour = require('bonjour')()
// advertise an HTTP server on port 3000
bonjour....
0
votes
0
answers
54
views
Bonjour and Apple Network Framework in hotels
I got a client server app that uses bonjour and Apple network framework with UDP.
The app doesn't work in hotel rooms however as hotels seem to be blocking either Bonjour or UDP or both.
Any idea if ...
0
votes
0
answers
124
views
How do I announce a Bonjour service?
I am trying to implement code that announces a Bonjour service on OSX. Out of the box, there isn't a direct way to do this.
In Macapi.Foundation are the following interfaces: NSNetServiceClass and ...
0
votes
0
answers
47
views
Bonjour discovery ghost service found
I've developed a simple app that use Bonjour service to communicate.
I followed Apple and Android documentations and everything works fine.
Now I discoverd that if the device lose wifi connection, ...
0
votes
0
answers
108
views
Publish a SpringBoot application in a local network and make it available with zeroconf
My goal is to build a spring boot app, deploy it on my local network and make it available to other devices throw http without deploying any DNS server.
For now, the spring boot app is running on my ...
1
vote
1
answer
112
views
macOS: DNSSD crash after calling fd_set on its socket
I have the following code, which crashes my program, upon calling FD_SET.
void handleEvents(DNSServiceRef service, const int32_t timeout)
{
if (!service)
return;
const int fd = ...
0
votes
0
answers
581
views
Forwarding multicast DNS requests on localhost
My ultimate goal is to forward mDNS queries from Android emulator to my local network.
I have the communication between emulator and my localhost on PC figured out. What I need to do now is to forward ...
1
vote
2
answers
798
views
Discovering services via Bonjour on iOS 14
I'm having trouble understanding privacy constraints for local network service discovery using Bonjour on iOS 14. Here is what I found:
Using NetServiceBrowser, I'm able to discover services using:
...
1
vote
0
answers
59
views
Is there any reliable way to discover microcontroler in LAN in iOS / Android / Windows / Linux / macOS?
I am trying to expose ESP8266 to be available both when working as access point and while connected to the wireless local network (use case would be: is user leaves home with the device - it starts ...
1
vote
1
answer
204
views
Resolve obfuscated IP addresses Node.js using the DNS module
I know on a Mac OSX I can run this command: dns-sd -q a5b3ef18-2e66-4e24-91d2-893b93bbc1c1.local and it returns an IP address. Can I do this in Node.js? It seems like the dns module is mainly used ...
10
votes
3
answers
2k
views
NSNetServiceBrowser did not search with error -72008 on iOS 14
The same error is also triggered setting up Multipeer Connectivity (which uses Bonjour). The code I was using for initiating Bonjour browsing and Multipeer Connectivity was modified from the Apple ...
1
vote
0
answers
305
views
Swift: Read/Write & connection problems with I/O streams and URLSessionStreamTask
Context
I am trying to create a communication channel based on Bonjour NetService and URLSessionStreamTask to open the I/O stream.
I have the setup ready and I am able to connect with bonjour service ...
2
votes
0
answers
113
views
Is there any way to get the list of connected scanners from a client side LAN (Using Javascript) in an MVC application?
We are working on an MVC application to scan the document from a twain direct based scanner which is installed in a LAN.
For the discovery of connected scanners, we are using Bonjour which exposes the ...
1
vote
2
answers
3k
views
UDP Listener on iOS 14
I have a question regarding how to set up a UDP listener on iOS 14. I have a UDP listener which has worked in the past, but after updating to iOS 14 it works sporadically/not at all.
This lives in an ...
0
votes
1
answer
128
views
Is there any way to control Local Area Permission Dialog on iOS 14
I am using some networking API's such as CNCopyCurrentNetworkInfo in order to fetch the SSID. As a result, the Local Area Permission is dialog is shown to the user on iOS 14. If the permission is ...
0
votes
1
answer
571
views
Windows dns-sd (Bonjour/ZeroConf) did not discover iPhone service via USB
I have a Bonjour _http._tcp. service published on iPhone. With the iPhone Wifi Off; running the following dns-sd command on MacBook's terminal:
dns-sd -B _services._dns-sd._udp
then connect the iPhone ...
-1
votes
1
answer
321
views
Sending web requests to IoT device both on Wifi and on mobile data
I have a Xamarin application that requires to connect to a device from the LAN side and also the WAN side. The device (an ESP8266) is connected via WiFi to an internal network and can be accessed from ...
1
vote
0
answers
195
views
Is there any way to install Apple Bonjour SDK on windows via command line (for Github Actions)?
I'm developing an Electron Application which uses the Apple Bonjour (https://developer.apple.com/bonjour/), and to compile its native dependencies I need to install the Apple Bonjour SDK for each ...
0
votes
1
answer
780
views
How to add SMB as Bonjour Service in Windows
I have a Windows 10 machine on my network acting as a File Server, one of the clients to that sever is a Mac. I know for example that making a Samba share in Linux also creates an mDNS entry that ...
0
votes
1
answer
266
views
Connect to a peer based on IP address and port
I've got an app that supports Bonjour and manually connecting to an IP (all within the same local network). I'm now looking at whether I can use MPC instead and while it obviously would be able to ...
0
votes
1
answer
133
views
NSNetService says it is published, but it isn't visible on the network
I'm working on a little iOS app for my own use (initially, at least) and I thought I would use Bonjour to configure networking between two iOS devices.
My server's interface defines
NSNetService *...
0
votes
1
answer
297
views
My iOS/MacOS devices are unable to resolve my bonjour/zeroconf service created on Windows
I'm hoping someone may have experience with this and could provide some help. I've created a Windows bonjour service using this bonjour package from npm. When created, my iOS/MacOSx device is not able ...
0
votes
1
answer
186
views
How to remove a published service NetService
I am using the latest Swift documentation to write NetService, which am able to publish and search. But I am unable to remove service from the publisher. Not able to understand the role of RunLoop ...
9
votes
1
answer
921
views
How to resolve addresses and port information from an NWEndpoint.service enum case (if possible)
Currently I'm using NetServiceBrowser to find Bonjour services and to resolve corresponding addresses and port.
Looking to de-complicate my code I stumbled upon NWBrowser which seems to provide a ...
0
votes
0
answers
421
views
Bonjour -How to get the IP address to uniquely identify each client connected to the network
I'm not well versed in networking but I'm firing up my own Bonjour service to find nearby users. I read this blog post and it says:
Socket represents a unique communication endpoint on the network. ...
0
votes
1
answer
103
views
Swift -Does the Bonjour NSNetServiceBrowser have a peer limit larger then MCSession's 8?
Using a MCSession, the session can only have 8 devices connected to it:
Sessions currently support up to 8 peers, including the local peer
I need way more than 8 peers. I came across this apple ...
0
votes
1
answer
393
views
NetService failing to publish
I am attempting to do a simple test of publishing a bonjour service locally in Swift. I am doing this through a simple one view app that just creates a netService object and attempts to publish it. ...
0
votes
1
answer
89
views
How can piping tail of a log to a script cause the process generating the log to stop generating entries?
I’m trying to solve a weird issue. I have evidence suggesting that the script I’m piping tail output to is the cause of the issue, but I’m not sure what to look for. Here’s what I’ve got:
I have a ...
1
vote
1
answer
347
views
iOS Bonjour: didFindService but failed to resolve in public Wi-Fi network
I am able to use NSNetServiceBrowser to find and then resolve a mDNS service in my local wi-fi. But in a public Wi-Fi network, the same code can only find the service and then failed to resolve the ...
0
votes
0
answers
118
views
How can I use Bonjour on iOS to let other devices connected to my iPhones hotspot know the ip address and port of the server my iOS app is hosting?
I have created an iOS app that hosts a UDP Server. It doesn't seem possible for me to know the IP address of the server before hand. I use this function to get the IP Address:
// Get IP Addresses
...
2
votes
0
answers
371
views
NsdManager discovers, immediately loses and re-discovers same service after WiFi is re-enabled on Android phone
In my Android app I have to show a list of available services on the network published by another machine (RPi 3B con Raspbian Stretch) using avahi 0.6.32 (Bonjour/zeroconf daemon for Linux). I obtain ...
0
votes
1
answer
83
views
NSNetService Assign IP Address using C#
Using Python link I am able to publish a service set the IP address that I want to connect to when user selects the device in control Center.
Below is the Code for Python. Now using NSNetService in C# ...
7
votes
3
answers
2k
views
NSdManager ResolveListener Error Code 3: Failure Already active
I'm using NsdManager in an Android App to discover NSD services published by another device also developed by me. I only do service discovery on Android App (no service registration needed on this ...
1
vote
0
answers
103
views
Service Discovery dies after wifi disconnect / reconnect
why does losing a wifi connection or using flight mode break service discovery until power cycling the adapter or rebooting?
Steps to recreate issue :
Run Dns-sd -B "_services._dns-sd._udp.local." ~...
2
votes
0
answers
125
views
Bonjour: how to configure macOS 10.14 to reach subdomains within machine.local domain?
Developing services on a macOS 10.14 machine, we would like to reach each different service with a subdomain (akin to what will happen in production).
Assume the machine's name is "bar", then we can ...
1
vote
0
answers
73
views
Why does 'DNSServiceRegisterRecord' not return reference, if there are many ip addresses on the adapter?
I am registering about 80 ip addresses on my router, creating udp sockets, and want to do Bonjour registration for each ip. But the registrations are extremely slow, or failing in presence of so many ...
0
votes
1
answer
233
views
NSNetService doesn't contain any addresses
I'm hosting a service in a Mac application and connecting with an iOS app. While the iOS app will find the service, the service doesn't contain any addresses, so I can't connect a socket.
This is my ...
1
vote
0
answers
70
views
C# Bonjour SDK RegisterRecord or AddRecord
I am building a .NET application that requires to do register itself on a Wifi network and also check for updates. I am using Apple Bonjour SDK for C# for registering a service and also browsing other ...
7
votes
1
answer
9k
views
How to install the dns-sd command line test tool on Windows or Linux?
The book Zero Configuration Networking - The Definite Guide by Stuart Cheshire and Daniel H. Steinberg from 2005 describes a dns-sd command line test tool which should be available for macOS, Windows ...
3
votes
1
answer
2k
views
NsdManager discovery does not work on Android 9
I have tried for a good time now to get the NsdManager discovery function to work on Android 9. It works on any Android version prior to that without any problems.
For testing purposes I use this ...
0
votes
1
answer
97
views
Why does this code never discover Bonjour instances (mDNS)?
I've taken this code almost directly from the dns-sd SDK sample, and yet, it does not find the services I search for.
There is no error, just none of the callbacks are called. This is linked against ...
3
votes
0
answers
176
views
Plotly Dash Server on Heroku fails on Push - bonjour-py==0.3
I am trying to deploy a Dash App (from Plot.ly) using a heroku server.
- tutorial used found here: https://dash.plot.ly/deploymentFirst, I signed into my heroku account and created the app:
heroku ...
0
votes
0
answers
488
views
Print to network connected printer android
I have tried many ways to print to network connected printer. Basically i want to print to the printer which is LAN connected. With default NSD manager we cannot detect it. But i was able to get ...