Questions tagged [jmdns]

JmDNS is a Java implementation of multi-cast DNS and can be used for service registration and discovery in local area networks. JmDNS is fully compatible with Apple's Bonjour.

JmDNS is a Java implementation of multi-cast DNS and can be used for service registration and discovery in local area networks. JmDNS is fully compatible with Apple's Bonjour.

The Zeroconf working group is working towards zero-configuration IP networking. Multi-cast DNS and DNS service discovery provide a convenient way for devices and services to register themselves, and to discover other network-based services without relying on centrally administered services.

Java as a language is not appropriate for low-level network configuration, but it is very useful for service registration and discovery. JmDNS provides an easy-to-use pure-Java mDNS implementation that runs on most JDK1.6 compatible VMs.

122 questions
30
votes
5 answers

Bonjour implementation on Android

I am trying to implement bonjour/zero conf on my android app. I am using jmDns library for searching the all the available devices. Here is the code that I am using for searching the devices in the same network: public class ListDevices extends…
mudit
  • 25,306
  • 32
  • 90
  • 132
25
votes
1 answer

Is Android NSD (Network Service Discovery) compatible with Bonjour service in iOS?

I will create a server-less local networking App for iOS and Android. the App in both iOS and Android devices should find out and talk to each other. I know that there are platform built-in services (which are Bonjour in iOS and NSD in Android since…
Henry Leu
  • 2,184
  • 4
  • 22
  • 34
20
votes
1 answer

How exactly does mDNS resolve addresses?

Once a service is discovered through DNS-SD, how exactly does the address of that host get resolved, and does it take significantly more time/overhead? Also, if I am using JmDNS or Bonjour there are call-backs for both serviceFound and…
ndc5057
  • 860
  • 4
  • 9
  • 17
19
votes
2 answers

Android - jmdns doesn't discover devices

I'm trying to implement a class to discover services on the network. I've tried working with Android's NSD and it does discover the services fine, but it supports only API levels 16 and up, and I can't seem to retrieve the txtRecord field within the…
orenk86
  • 720
  • 9
  • 24
17
votes
3 answers

Multicast on Android 2.2

Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service detection. There are many questions & answers from the Android 1.5->2.0 timeframe, including on stackOverflow, that indicate varying levels of success, and a…
Brent Chartrand
  • 546
  • 1
  • 4
  • 10
12
votes
1 answer

Implementing android as a server (receiver) in airplay

I want to create the airplay in android in which my android device will work as a airplay server(receiver)and iPhone device will work as a receiver . I have used jmdns in my application which is open source library in java for the airplay . It is…
V-Xtreme
  • 7,230
  • 9
  • 39
  • 79
11
votes
1 answer

JmDNS service discovery in client-server

I'm trying to enable service discovery in my client-server application using JmDNS. I fully understand service registry on the server side, with code that resembles this: JmDNS jmdns = JmDNS.create(localhost); jmdns.register(serviceInfo); However,…
9
votes
2 answers

Network Device Discovery

For my Android app, users need to connect to a server that will be hosted somewhere on the same LAN. There can be multiple servers hosted on the same LAN. To make it easy for the user, I was going to scan the current LAN that the Android device is…
telkins
  • 10,440
  • 8
  • 52
  • 79
8
votes
2 answers

How to resolve a Bonjour domain name with JmDNS

As part of an app I'm developing, I need to be able to resolve the correct IP that corresponds with a Bonjour hostname. For example, I'm given jack.local and need to resolve it to 192.168.1.141 which is the IP address associated with jack. I've been…
Jake
  • 283
  • 2
  • 6
8
votes
2 answers

Android build with jmDNS fails

PREAMBLE: since SDK level 16, Android has a built-in Zeroconf implementation. Unless bronze age compatibility is a concern, don't use jmDNS anymore, use NsdManager instead. PREAMBLE #2: early versions of NsdManager are full of glitches, see SO…
Seva Alekseyev
  • 59,826
  • 25
  • 160
  • 281
7
votes
2 answers

Performing long running operation in onDestroy

I have a "long-running" cleanup operation that I need to perform in onDestroy() of my Activity. What is the best way to do this? If I use a Thread to do this, my onDestroy() will return immediately; but what happens to the Thread reference? I am…
curioustechizen
  • 10,572
  • 10
  • 61
  • 110
7
votes
0 answers

Make Spring Boot application discoverable with zeroconf

How can I make a Java web app application built with Spring Boot discoverable with zeroconf? I tried the following with JmDNS but it does not seem to work: @Bean public JmDNS jmdns() { try { JmDNS jmdns =…
yglodt
  • 13,807
  • 14
  • 91
  • 127
7
votes
2 answers

android resolve .local (mDNS)

I'm looking for a solution to resolve .local host names with Android 4.0.4 (no NSD, due to API level 15). On the device I don't have any service to discover, just the hostname. Could you please provide an example how to resolve? I integrated the…
MartoniczD
  • 178
  • 1
  • 1
  • 9
7
votes
2 answers

Xamarin.Android JmDNS binding issues

I started work on a JmDNS bindings for Xamarin.Android. I managed to get the binding to build but I can not reference it from within my code. https://github.com/ytn3rd/monodroid-bindings/tree/master/JmDNS First issue I had was there was no…
Brad Moore
  • 316
  • 5
  • 23
7
votes
2 answers

JmDNS: Can't resolve service

I'm trying to implement JmDNS discovery for communication between an Android app and a desktop application. I have followed the following tutorial: http://home.heeere.com/tech-androidjmdns.html The Android app registers a service and the desktop…
1
2 3
8 9