Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Android Multicast can't receive!

    Mobile and Embedded
    1
    1
    810
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K
      ken_liu last edited by

      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....

      1 Reply Last reply Reply Quote 0
      • First post
        Last post