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
2
votes
1 answer

Copy core data database between two iphone

I'm coding an app with core data. I need to sync the database between two iphones running the same app maybe via bonjour... Can anyone help? Thankyou!
a.periz
  • 21
  • 1
2
votes
3 answers

Sharing a DNSServiceRef using kDNSServiceFlagsShareConnection stalls my program

I'm building a client using dns-sd api from Bonjour. I notice that there is a flag called kDNSServiceFlagsShareConnection that it is used to share the connection of one DNSServiceRef. Apple site says For efficiency, clients that perform many…
gvalero87
  • 855
  • 3
  • 15
  • 32
2
votes
1 answer

Is there any way to simulate multiple iOS devices running a Bonjour networking app?

I want to build a multiplayer iPhone game that allows multiple iPhones (clients) to connect to a single iPad (server) using Bonjour. Since I only have one iPhone and one iPad, is there a way to run multiple instances of the iPhone simulator to…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
2
votes
2 answers

Using apple mdns service in android

I downloaded dns_sd jar from here http://www.java2s.com/Code/Jar/d/Downloaddnssdjar.htm and trying to use it in my android project to discover services. I use the DNSSD.browse(myService, myBrowseListener) to discover services. The problem is I keep…
2
votes
0 answers

Samba Bonjour Python Script

I am trying to achieve a data transfer between samba (python script) and iPad. However, when the python script crashes and i restart the script and try to connect from the iPad. I couldn't connect to the python script. iPad is searching for the…
Perwyl Liu
  • 349
  • 4
  • 14
2
votes
0 answers

Android network discovery - can't set bonjour hostname

I followed the guide here: http://developer.android.com/training/connect-devices-wirelessly/nsd.html The example works fine and on the network the device appear with the "serviceName" I set, for example "Nexus5". With Bonjour Browser app infact I…
andQlimax
  • 778
  • 10
  • 24
2
votes
1 answer

Android -> iOS zero conf network discovery with jmDNS broken

I'm using jmDNS 3.4.1 to do network discovery between Android and iOS. Recently it has not worked properly. The Android app broadcasts itself on the network using mDNS. The iOS app looks for services using NSNetServiceBrowser. iOS does discover the…
Steveo
  • 2,238
  • 1
  • 21
  • 34
2
votes
0 answers

Unregister Android Network Service Discovery services with abnormal app exits?

I'm trying out the official android NSDchat example to communicate between two android phones connecting to the same wifi network. The chatting part of the example was working fine. However, if the app exits abnormally, the onDestroy() method that…
2
votes
1 answer

Is it possible in some way to convert IPV6 address to IPV4 address or else retrieve the IPV4 address always?

We are developing an iOS application for ipad that uses bonjour for conneting with other devices and couchbaseListener for replications with peer databases. We have observed that whenever [nsnetservice addresses] returns IPV6 address ,replication…
2
votes
1 answer

Connect iPhones over WiFi signals without joining a WiFi network

In my iOS application I want to connect iPhones together using WiFi Signals. Suppose i have 3 iPhones and all 3 have WiFi ON from Settings but no iPhone connected to any available WiFi network only WiFi setting is ON. I know about "Bonjour services"…
Hashim Khan
  • 440
  • 1
  • 5
  • 15
2
votes
1 answer

What is the best way to communicate with Bonjour?

There is a nice method provided by Bonjour: DNSSD.browse("_killerapp._tcp", this);. As the first argument of this method I give type of service which potentially can be available in the network, and as the second argument I give a "callback object".…
Roman
  • 124,451
  • 167
  • 349
  • 456
2
votes
1 answer

Can Bonjour browse a service with a particular name?

Bonjour provides "DNSSD.browse(serviceType,callBackObject)" method which browses for services of a particular type. If a service of the given type is found, Bonjour calls "callBackObject.serviceFound". If the service is lost, Bonjour calls…
Roman
  • 124,451
  • 167
  • 349
  • 456
2
votes
6 answers

Why it should be done in such a complicated way? Is it OOP way of thinking?

I am trying to use Bonjour from Java. I found an example of how to do it and I think I understood it. But I still do not understand why it should be done in such a complicated way. May be I miss something. So, the code I found works in the…
Roman
  • 124,451
  • 167
  • 349
  • 456
2
votes
2 answers

Sharing Data Between iOS devices

I would like to do data sharing(Maybe xml or json file) between 2 iOS devices (iPhone or iPad) and communication would be like "one to many bidirectional" bases at a time. With some experience and from articles , I have found below ways to do…
Nirav Shah
  • 2,064
  • 5
  • 24
  • 34
2
votes
1 answer

On Android, JmDNS being called repeatedly with network ON and OFF

I am having a problem with using the JmDNS library for an Android app. Since Bonjour does not send periodic keep-alive messages, I am closing and opening a new JmDNS instance every 30 seconds, so that I can have the serviceAdded and serviceResolved…
Rajath
  • 11,787
  • 7
  • 48
  • 62