Multicast on Android 2.2

后端 未结 3 1627
耶瑟儿~
耶瑟儿~ 2020-12-08 08:57

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 timef

3条回答
  •  臣服心动
    2020-12-08 09:14

    I've been doing a bit of research into this, and I believe it is a problem with Android in general, and fixed in or around Android 2.3.7.

    It's a bit too anecdotal, but here's what I tested:

    • HTC Desire, 2.2, stock: fail
    • HTC Desire, 2.3.7, CyanogenMod: success
    • Motorola Milestone, 2.1-update1: fail
    • HTC Desire S, 2.3.3: fail
    • Acer Iconia A501, 3.2.1: success
    • Samsung something, 2.3.3: fail
    • HTC Legend, 2.2 I think: fail

    When I say 'fail', in fact they were all able to send multicast messages to the 'success' devices, but never receive anything back except their own messages - as jldupont describes.

    Note that the multicast IM app Kouchat is only available for 2.3.7 onwards, even though it can be made to compile for as far back as 2.1, which gives further credence to this theory.

提交回复
热议问题