Search code examples
javaandroidsocketswifi

Voice communication between two android's over WiFi without public IP?


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.


Solution

  • 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