576 questions
0
votes
0
answers
74
views
Error when using NWBrowser to query Bonjour service: PolicyDenied
I used to use NetServiceBrowser to search Bonjour service for a certain service type sucessfully. But it suddenly stopped working without errors a few days ago. I cannot decide if it's because I ...
0
votes
1
answer
141
views
NSNetServicesErrorCode = "-72008" error on xcode ios
I keep getting this error no matter what changes I make
[Error: {
NSNetServicesErrorCode = "-72008";
NSNetServicesErrorDomain = 10;
}]
I have this in my info.plist
<key>...
0
votes
1
answer
166
views
Can I connect to a Swift gRPC server over a local network via Bonjour (zeroconf)?
I am working on an iOS app where one device will act as the server and other devices on the same local network will connect to the server device. I would like to use Bonjour for the clients to ...
0
votes
0
answers
193
views
Access webserver from a USB-tethered Android
I made a small web app using flask on a raspberry pi, and I would like to access it from my phone, in a place without network (local or internet) connection. Using USB tethering, I can access my web ...
1
vote
0
answers
460
views
Bonjour with NWListener & NWBrowser p2p connections
I am using Bonjour to advertise and discover devices that are near to one another. I am successfully starting my NWListener
let parameters = NWParameters(tls: nil, tcp: tcpOptions)
...
6
votes
1
answer
759
views
Why are TXT Records set to nil when using NWBrowser for Network.framework?
I'm trying to get a list of Bonjour services running on my local network using Network.framework in Swift for my iOS application. In order to discover devices that are using the same protocol version ...
1
vote
2
answers
640
views
Get Model Identifier of Device in Network
I have a couple of Apple devices in my network (both computers and mobile devices). I was wondering if it is possible, to get the model identifier like Macmini9,1 if I have the IP address and/or the ...
0
votes
0
answers
211
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 ...
1
vote
0
answers
185
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 ...
1
vote
1
answer
196
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
229
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 ...
2
votes
2
answers
5k
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
1
answer
690
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 ...
1
vote
0
answers
734
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
2
answers
5k
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
1k
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
vote
1
answer
925
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 ...
1
vote
1
answer
679
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
873
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 ...
15
votes
1
answer
4k
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
1
answer
212
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
115
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 ...
0
votes
0
answers
338
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
...
0
votes
1
answer
147
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# ...
1
vote
0
answers
158
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." ~...