How can I discover zeroconf (Bonjour) services on Android? I'm having trouble with jmDNS.

Posted by Peter Kirn on Stack Overflow See other posts from Stack Overflow or by Peter Kirn
Published on 2010-03-18T23:53:17Z Indexed on 2010/03/19 0:51 UTC
Read the original article Hit count: 1162

Filed under:
|

I'm working with a Droid / Android 2.0.1 and encountering an issue apparently many people have: I'm unable to discover services using the one pure-Java zeroconf library I know of, jmDNS. (Apple's Bonjour, while it works on Linux and Windows Java, I believe would be harder to port to Android because of reliance on native code.)

I can create services, but not discover them. I'm trying to make sense of what's going on.

There is an ongoing issue report here; related to multicast and IPv6, but seems to be throwing users of jmDNS, too: http://code.google.com/p/android/issues/detail?id=2323

Any idea why this person might be having success? See comment 22 in the bug report. (I'm new to SO, so can't post more than one URL.)

I have tested their code, but without any luck.

Has anyone successfully accomplished zeroconf service discovery on Android, using jmDNS or another library?

Is it possible my discovery issue is related to the IPv6 multicast problem?

© Stack Overflow or respective owner

Related posts about from-irc

Related posts about android