I want to get to know how I can transfer data easily between 2 iPhones, over wifi. I would like to know if I could do that without having a server or database, but within an app (so without using email).
-
possible duplicate of [Transfer files between 2 iPhones over wifi?](http://stackoverflow.com/questions/8637598/transfer-files-between-2-iphones-over-wifi) – Brad Larson Jan 17 '12 at 17:21
-
See also [Any API to share data between two iphones/ipod touches/ipads? (Except GameKit)](http://stackoverflow.com/questions/5584348/any-api-to-share-data-between-two-iphones-ipod-touches-ipads-except-gamekit) – Brad Larson Jan 17 '12 at 17:22
2 Answers
Game Kit has support for Peer-to-Peer-Connectivity and is, despite the name, not only usable for games:
The GKSession class allows your application to create and manage an ad-hoc Bluetooth or local wireless network, as shown in Figure 1. Copies of your application running on multiple devices can discover each other and exchange information, providing a simple and powerful way to create multiplayer games on iOS. Further, sessions offer all applications an exciting mechanism to allow users to collaborate with each other.

- 28,981
- 10
- 72
- 75
You can also check out Bonjour API from Apple. I am not sure if you need a static IP for it to work or it can just work over wifi. Just trying to give a pointer.
Based on your exact usecase, it can work well.
Check it out here, Game center is also there. http://developer.apple.com/technologies/ios/networking.html

- 3,302
- 2
- 22
- 24