Android P2P Multiplayer: Need directions

Heya guys, new guy on the forums here!

I know this question might seem a bit off, especially in a comparitively advanced section like this, but I’m not too sure where I’m supposed to get advice on this…

So, I’ve been working on Unity for quite a while, tinkered enough to understand how to make games for the PC and smartphones on it, but the one thing that I really want to do, is create a game where you can connect smartphones directly to other smartphones without any internet connection of any sorts. I believe its called P2P, Peer-to-Peer? I’m not too sure… Like, in the instance of a tic-tac-toe game, you meet your buddy outside, “Oh hey, wanna play Tic Tac Toe?”, and whip out your Android/iPhone, start up the game, and go into a “searching-for-other-nearby-devices-looking-for-players” thing. The game will then show who in the vicinity is looking for other players, and you can select who you would like to play with. Game takes a while to connect up, and BAM, game on.

So far, however, it seems like all the tutorials I have found involve the use of creating a server online, in other words needing the use of the internet.

Thus, my question is… Could someone please point me in the right direction on how to learn this? A tutorial, a demo that I can download and see the source code, maybe a rough lesson or history or so…

Thank you!

The technology you’re talking about is called blue-tooth, not sure how many of the Android phones that support it.

prime31.com have a wifi/bluetooth package for ios, no android version but i don’t think they tried developing since there mainly ios

We have actually built a Unity plugin into an SDK called AllJoyn that makes it easy to incorporate promixity-based app-to-app (peer-to-peer) connectivity. It’s cross-platform, soon to support iOS and best of all it’s all open source. Check it out here: http://www.alljoyn.org