Android Wifi Direct: How to send data from Group Owner to the clients?

前端 未结 1 1321
北海茫月
北海茫月 2021-01-07 05:32

I\'ve got a problem using wifi direct. I managed to connect 2 devices and send data from the client to the group owner, because the group owner ip is the one that everybody

相关标签:
1条回答
  • 2021-01-07 05:41

    Like Laszlo Magyar said, you need to sent an empty message to server first so that server can use client socket to get the incoming ip address.

    My solution is to send an string to server from client so server CAN know the client's ip address, and the rest of process is the same.

    0 讨论(0)
提交回复
热议问题