Android Question Send data from one device to multiple devices with WiFiDirect

Discussion in 'Android Questions' started by welu1805, Jan 29, 2015.

  1. welu1805

    welu1805 Active Member Licensed User

    Hi all,

    I want to send some data (e. g. 4 bytes) from one device (A) simultaneously to multiple devices (B, C, D ...) per WiFiDirect (without router). The data transfer direction is only from device A to B, C, D ...

    B, C, D ... should only listen for the data from A. These devices don't need to answer.

    Is this possible by WiFiDirect? If yes, is there an example?

  2. Erel

    Erel Administrator Staff Member Licensed User

    WifiDirect library only supports a connection between two devices.

    You can create a hotspot on one of the devices and then use it instead of wifi direct.
  3. welu1805

    welu1805 Active Member Licensed User

    Is it possible to create a hotspot and use the same device as server or client?
  4. welu1805

    welu1805 Active Member Licensed User

    I tried it myself: Yes it's possible.

    1. Device A: I turned on Hotspot "Free Wifi"
    2. Device B: I set WLAN to "Free Wifi"
    3. Device A: I started my server app. It show me the actual IP = (without Hotspot it was
    4. Device B. I started my client app with IP =

    Server app and client app show "connected".
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice