Android Multicast can't receive!



  • Hi guys:

    I'm new comer, and I want start a project that Android App communicate with Windows PC.
    

    I want to send package to multicast group from PC, and Android App join multicast group and listen the group.

    My platform: Windows 8.1, Qt Creator 3.3.0, Qt 5.4.0(MSVC 2010. 32bit)

    So I use example 「Multicast Receiver Example」、「Multicast Sender Example」, PC start Sender, App start Receiver, but App can't receive any package from multicast.
    I was tried use two phone run receiver and sender example, or two PC, it works, but PC and App works failed.
    But why ?
    I was search a topic, link as below
    http://qt-project.org/forums/viewthread/21081
    and
    https://bugreports.qt-project.org/browse/QTBUG-34111

    That says need to set
    android.permission.ACCESS_NETWORK_STATE
    android.permission.WRITE_EXTERNAL_STORAGE
    android.permission.ACCESS_WIFI_STATE
    android.permission.CHANGE_WIFI_MULTICAST_STATE
    android.permission.INTERNET

    But I don't know how to set it.
    If I set it, can solve my problem ? or other way?

    Thanks everybody read my problem with my poor English....


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.