AllJoyn is a higher-level platform that does most of the plumbing for you, basically you define the interface, register it, create a session and feel good. It works via IP (for example, Wi-Fi with AP) and has a special code for Wi-Fi Direct (it is not officially supported to buy), and there is a partial implementation of Bluetooth LE (but which currently requires a built-in Android phone).
Here is a description of what is officially supported on this forum: https://allseenalliance.org/developer-resources/forum/developers/how-alljoyn-works-mobile-devices
You can do it all yourself via Wi-Fi or Wi-Fi directly, but it will work a lot more (you will have to do the search, marshaling, etc. yourself).
source share