Click here to Skip to main content
15,880,299 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How could I connect two android mobiles using WiFi and what is the code used for it

Depending on the version of Android you can use WiFi Direct;[^].

It allows you to set up a peer to peer network over WiFi in a very ad-hoc manner. Note that I think you'll need at least API level 14 to use it.
For API versions lower that that you'd either have to host a server on the WiFi or use Bluetooth.

Hope this helps,
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900