views:

1833

answers:

3

I'm new to developing applications for the iPhone and iPod touch. Is it possible to communicate directly between 2 devices in the same room by using WiFi or perhaps even BlueTooth on the iPhone?

I've seen a demo of a fire application where one iPhone "lights" other iPhone when they get close to each other. How is this accomplished?

The point of all this is that I am exploring the option of developing a game that you can play with another person in the same room.

+11  A: 

The iPhone supports Bonjour based service discovery and several applications take advantage of this to do things like syncing with a PC on the same network. Explore the samples and guides in the iPhone SDK. WiTap and BonjourWeb are good examples to start with. NSNetServices and CFNetServices are the APIs you'll be dealing with for Bonjour

madninja
+1  A: 

You can do that… but you still need a Wifi network that all the iPhones can communicate with.

schwa
+3  A: 

iPhone - iPhone communication can also be accomplished over bluetooth using GameKit.

kubi
Didn't realize this question was over a year old. No wonder I was the first to suggest GameKit.
kubi