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
1
vote
1 answer

serviceRemoved is not called while discovering the devices

I am working on a project that needs to discover all the devices in the same wi-fi network. For implementing this I have used Jmdns library. It is giving me the list of devices that are registered into the current network, but when the device gets…
Kartheek
  • 7,104
  • 3
  • 30
  • 44
1
vote
1 answer

jmDNS documentation/samples

Does anyone know where to find official documentation (other than the Java docs) and samples for jmDNS? Have already search on google, the project site, sources, and have found nothing.
Carlos Alegría
  • 374
  • 1
  • 3
  • 13
1
vote
1 answer

Why would JmDNS service discovery work on a Motorola Droid running Android 2.1-update1 and not on an HTC Incredible running the same Android version?

I have successfully gotten JmDNS working on Android 2.1 testing on a Motorola Droid by using MulticastLock, but recently got an HTC Incredible as second test device, and JmDNS discovery doesn't work at all. I should mention that broadcasting a…
Churlbong
  • 148
  • 6
1
vote
0 answers

JMDNS does not update and/or detect available services

I'm trying to implement JMDNS in an Android app. Here's the relevant code: ... jmDNS = JmDNS.create(myaddr); HashMap props= new HashMap(); props.put(PROP_USER_NAME,userName); props.put(PROP_USER_ID,userId); ServiceInfo serviceInfo = …
Roberto Betancourt
  • 2,375
  • 3
  • 27
  • 35
1
vote
1 answer

How to start 2 services at different ports using jmdns?

I need to start 2 services simultaneously (i.e airplay and airtunes) using jmdns. I'm able to start one service using jmdns but when I register 2 services simultaneously it gives me exception while sending data from IOS. Here is my code: void…
Adil Soomro
  • 37,609
  • 9
  • 103
  • 153
1
vote
1 answer

Communication with jmdns.jar

I am using jmdns library to discover mDNS service advertise by other devices in network. I am using Android 4.2. I have downloaded demo application from jmdns official website and AndroidDnssdDiscoveryEclipse application is getting crashed…
CoolNik
  • 23
  • 4
1
vote
0 answers

JMDNS Service re-announce

I am registering a service over Wifi using JMDNS. I need to reannounce it periodically. I have checked ServiceInfo#setText(final byte [] text) ServiceInfo#setText(final Map) and, both didn't worked for me. Is there any other workaround to do same?
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37
1
vote
0 answers

Jmdns not resloving service

I followed the example that comes with JmDNS. My code is as below! jmdns = JmDNS.create(); jmdns.addServiceListener("_nmx._tcp.local.",new ServiceListener() { @Override public void…
nmxprime
  • 1,506
  • 3
  • 25
  • 52
1
vote
0 answers

JmDNS doesn't resolve: Error writing DNS result to client

I get the following output in my logcat when trying to resolve JmDNS services. What does it mean? 03-05 15:12:07.947 1170-3248/? W/DnsProxyListener﹕ GetHostByAddrHandler: Error writing DNS result to client 03-05 15:12:07.947 1170-3248/?…
JohnyTex
  • 3,323
  • 5
  • 29
  • 52
1
vote
1 answer

JmDNS doesn't seem to work at all on Mac OS X

I have been having issues trying to get JmDNS working on Mac OS X. The symptom is that I can discover any services on the network except the ones on my own computer. It doesn't matter if they are on localhost or on a virtual machine running on my…
Hakanai
  • 12,010
  • 10
  • 62
  • 132
1
vote
1 answer

Acquiring WifiManager.MulticastLock on Android devices - reliable and consistent?

I am thinking of developing an Android app that would, as part of it's function, send-to and receive-from broadcast messages from all devices that are currently connected to a WiFi network. While a lot of developers have suggested that such a…
VJ Vélan Solutions
  • 6,434
  • 5
  • 49
  • 63
1
vote
0 answers

JmDNS UDP discovery in android

I am working on an network discovery demo where I want to discovery machines which are running udp service. (Connected to a single wifi). I am using following code public class DnssdDiscovery extends Activity { …
Sandip Jadhav
  • 7,377
  • 8
  • 44
  • 76
1
vote
1 answer

Android - Jmdns getPort()

After some initial problems, I managed to get Jmdns up and running, which is discovering my Raspberry Pi connected to my network quite nicely. I'm using the example from this page. However, I'm not really understanding the getPort() function. I…
1
vote
0 answers

How to implement bonjour on Android with JmDNS

I want to use JmDNS lib to implement bonjour on Android: Below s my code: private String type1 = "_adisk._tcp."; private String type2 = "_workstation._tcp.local."; private String type3 = "_smb._tcp.local."; private String type4 =…
brian
  • 6,802
  • 29
  • 83
  • 124
1
vote
1 answer

avahi not able to find service creted by JmDNS

I am creating JmDNS service from other machine running windows-xp by JmDNS dns = JmDNS.create("localhost"); dns.regesterService("_sreviceTest._tcp.local.", "Test-Service", 8765, "Description"); If I run other client which will resolve services,…
twid
  • 6,368
  • 4
  • 32
  • 50
1 2 3
8 9