Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How send data through WiFi?

In my Application I want to send files through WiFi to multiple users if they are using the same WiFi connection Without TCP. how to get the list of the users who are connected to a specified wify. I have tried with Samples But I didn't get anything .

like image 466
Aarav Avatar asked Feb 14 '26 23:02

Aarav


1 Answers

Wi-Fi peer-to-peer (P2P) allows Android 4.0 (API level 14) or later devices with the appropriate hardware to connect directly to each other via Wi-Fi without an intermediate access point (Android's Wi-Fi P2P framework complies with the Wi-Fi Alliance's Wi-Fi Direct™ certification program). Using these APIs, you can discover and connect to other devices when each device supports Wi-Fi P2P, then communicate over a speedy connection across distances much longer than a Bluetooth connection. This is useful for applications that share data among users, such as a multiplayer game or a photo sharing application

http://developer.android.com/guide/topics/connectivity/wifip2p.html You can also refer this link to know more about programmatically

like image 81
Nikhil Musale Avatar answered Feb 16 '26 13:02

Nikhil Musale