Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1077495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:34:59+00:00 2026-05-16T21:34:59+00:00

Has anyone gotten Multicast to work on Android 2.2, specifically JmDNS for Bonjour service

  • 0

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 bug in the bug tracker that indicate it was fixed, and closed, for 2.2 (http://code.google.com/p/android/issues/detail?id=2323) . I’ve tried the “TuneControl” source code, but that worked on ~1.5 and has not been updated, and does not work for me on 2.2.

So, the questions…
1) Has anyone seen multicast work on 2.2, specifically JmDNS, and specifically for Bonjour service detection?

2) What is necessary in code to make this work?

I’m using the appropriate permissions:

<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

I acquire the multicast lock:

WifiManager wifi = (WifiManager)getSystemService( Context.WIFI_SERVICE );
if(wifi != null)
{
    MulticastLock mcLock = wifi.createMulticastLock("mylock");
    mcLock.acquire();
...

And then try to start jmDNS to look for servers:

    mdns = JmDNS.create(addr, HOSTNAME);
    jmdns.addServiceListener(TOUCH_ABLE_TYPE, listener);
    jmdns.addServiceListener(DACP_TYPE, listener);
    ...

The listener never sees any services. I’ve verified using Wireshark that the request packets are sent, and that the server responds, but the response packet are never seen by the socket listener code in the jmDNS library.

So… am I missing something? Is this still a bug? Has ANYONE gotten anything even remotely like this to work???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:35:00+00:00Added an answer on May 16, 2026 at 9:35 pm

    To (rudely) answer my own question, more information was provided at http://code.google.com/p/android/issues/detail?id=2917#c48 by another person. For posterity, as they say, here is brian.ro…@gmail.com‘s answer…

    “I’ve spent quite a bit of time
    debugging mDNS issues with JmDNS on my
    Evo and HTC Hero (CDMA). What I found
    is there appears to be a filter in
    place in the broadcom wireless driver
    on the Evo (and since I’m getting a
    similiar reprt from an HTC Desire user
    – with the same chipset, presumably that handset as well). The filter, by
    default, blocks any non-unicast or
    network broadcast traffic, including
    multicast. Apparently the theory was
    it’s a battery saver.

    The problem appears to be the
    wpa_supplicant on the Evo does not
    support removing those filters when
    you get a MulticastLock. (Check the
    log output right after you get the
    lock and you’ll see what I mean).
    Unfortunately what has happened is the
    hardware vendors have fragmented
    multicast support…. :(“

    So… it appears this is a device problem more than a coding problem. D’oh. 🙁 If I get an opportunity to test on another device…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has ANYONE gotten a web service call to work with SharePoint to operate with
Has anyone gotten the glassfish v3 adapter to work with Eclipse without restarting every
Has anyone gotten the Globalize plugin to work Rails 2.3.2 or later? If so,
Has anyone gotten Fluent NHibernate to work with Castle ActiveRecord? I am particularly interested
Has anyone successfully gotten swfaddress to work with IE8 and above? It seems that
Has anyone ever gotten the Sphinx ranking options to work? I've read the manual
Has anyone gotten the IFilter sample from Microsoft to work on 64bit Windows 7?
Has anyone gotten the Open Source QR Code Library to work with ColdFusion? I
Has anyone gotten dotNetOpenAuth to work with F# and ASP.NET MVC yet? I've corrected
has anyone gotten this http://www.xarg.org/project/jquery-webcam-plugin/ , to work with aps.net mvc 3? I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.