Reputation: 109
I am looking for establishing communication between two android phones over WiFi in the same local network.
Planning to use socket programming, but not clear about the process. Any pointers on how it can be accomplished ?
More over i am planning for creating app for Voice call over Wifi between 2 WiFi enabled android devices that belong to same WiFi network.
Upvotes: 0
Views: 1667
Reputation: 7579
Not sure what you mean by "over WiFi but non-IP". Socket programming requires IP addesses (or hosts that translate into IPs).
If you mean over the internal network (LAN), then that is doable.
Upvotes: 1
Reputation: 5423
What you need is raw sockets. I don't think it's supported by Java plus you would need root permissions, which means you will have to use rooted devices.
See this answer: Raw Sockets on Android
Upvotes: 0