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.

578 questions
17
votes
3 answers

iPhone: Bonjour NSNetService IP address and port

Excuse my iPhone/Objective-C newbie status please! I've found my HTTP server using NSNetServiceBrowser, but now I just want the IP address and port of the service found. I've got something like the following in my delegate method: NSNetService*…
nikkumang
  • 1,615
  • 2
  • 17
  • 34
17
votes
3 answers

Can I use Bonjour from command line?

Is it possible to use Bonjour from command line? For example if I want to register a service I type something like that: bonjour -register service_name port. And then Bonjour allocate a free IP for my service. Or, for example, if I want to see a…
Roman
  • 124,451
  • 167
  • 349
  • 456
17
votes
5 answers

Simplest way to publish over Zeroconf/Bonjour?

I've got some apps I would like to make visible with zeroconf. Is there an easy scriptable way to do this? Is there anything that needs to be done by my network admin to enable this? Python or sh would be preferrable. OS-specific suggestions…
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
16
votes
1 answer

After upgrading to Xcode 6.3, on launch I now get the error: "The Bonjour service could not be resolved."

After upgrading to Xcode 6.3, I now get an alert panel with the error: The Bonjour service could not be resolved. The server may be temporarily unavailable. Contact your system administrator. How can I fix this?
ktak
  • 596
  • 3
  • 9
14
votes
2 answers

any way to detect iPads or iPhones on wireless network? bonjour?

I am trying to detect Apple devices connected to a wireless network. This is relatively simple using Bonjour, however I am also trying to detect what kind of device it is. Like, a MacBook Air, a MacBook Pro, a MacPro, an iPhone, iPod, or an…
gnychis
  • 7,289
  • 18
  • 75
  • 113
14
votes
2 answers

Ionic 2 cannot find module 'dgram'

I have installed a template Ionic 2 application and want to add the NPM package bonjour After installing and including the package in my component like this: var Bonjour = require('bonjour'); var bonjour = new Bonjour(); The application won't run…
WJM
  • 1,137
  • 1
  • 15
  • 30
13
votes
2 answers

How to get the list of all announced bonjour services on all available domains?

It's not the problem to look in all domains, but I can't find the right way to look for any service on the network.
Farcaller
  • 3,070
  • 1
  • 27
  • 42
13
votes
2 answers

LLMNR on Windows vs. Zeroconf vs. Bonjour

Link-Local Multicast Name Resolution (LLMNR) is a Microsoft tech for service discovery based on multicast DNS. Is it compatible with Bonjour/Zeroconf? If so, where's the API? The service discovery, I take it, is somehow rolled into vanilla DNS…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
12
votes
1 answer

How bonjour discover devices on network?

I want to write a C program that can search Bonjour enabled devices on network. Basically we have a Network IP Camera, it supports Bonjour protocol. I want to write API in C that can search these devices which have Bonjour enabled. Does anyone have…
Sarfraz Ahmed
  • 1,349
  • 6
  • 23
  • 43
12
votes
1 answer

NSNetServiceBrowser/Bonjour issues on iOS

I'm using Bonjour (NSNetServiceBrowser, to be precise) over WiFi in an app I'm developing for an iOS project I've been working on. However, despite noting the issues raised in the excellent response at Why does NSNetServiceBrowser find unpublished…
Jonathan Ellis
  • 5,221
  • 2
  • 36
  • 53
12
votes
3 answers

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 sample code and worked fine under iOS 13.
DDP
  • 2,463
  • 1
  • 26
  • 28
12
votes
1 answer

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 very simple interface to deal with the Bonjour…
Ruurd Adema
  • 920
  • 7
  • 17
12
votes
2 answers

How do I obtain "model name" for a networked device (potentially using Bonjour)?

Apple's Finder.app is able to consistently determine the exact model of each physical computer that uses bonjour (as evidenced by the icons being unique for each individual device type: iMac, MacPro, MBP, etc). How do they do this and what APIs do…
Marcus Tallhamn
  • 121
  • 1
  • 6
12
votes
3 answers

NSNetService delegates not being called

I'm trying to resolve a NSNetService (named "My_Mac") to an IP in a background app with this code: NSNetService *service = [[NSNetService alloc] initWithDomain:@"local." type:@"_daap._tcp" name:@"My_Mac"]; [service setDelegate:self]; [service…
K_T
  • 591
  • 7
  • 22
12
votes
3 answers

How to Transfer Large Files over wifi in iOS

I downloaded WiTap Code From Apple's website. Its for transferring data over local wifi network. I am working in a project to interact as client - server architecture. I am sending NSData from client side to server. I made 2 projects; one for…
HarshIT
  • 4,583
  • 2
  • 30
  • 60
1
2
3
38 39