Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Peer-to-peer network over wifi in iOS

Tags:

I've been at this for a few days now, and can't seem to find a solution. I want to create a peer to peer network over wifi on iOS. All open source code seems to be supporting running a server or being a client, but there's no code built to support being both - a peer. Is anybody aware of a way I can do this?

like image 774
Andrew Avatar asked Mar 12 '13 15:03

Andrew


People also ask

Does iOS support Wi-Fi Direct?

The official list of current iOS Wi-Fi Management APIs. There is no Wi-Fi Direct type of connection available. The primary issue being that Apple does not allow programmatic setting of the Wi-Fi network SSID and password.

How do I share Wi-Fi between devices on iOS?

Make sure that your device (the one sharing the password) is unlocked and connected to the Wi-Fi network. Select the Wi-Fi network on the device you want to connect. On your device, tap Share Password, then tap Done.

Is Wi-Fi a peer-to-peer network?

WiFi Peer to Peer (P2P) aka WiFi Direct enables devices to communicate with each other in a peer to peer manner without requiring any Access Point at typical WiFi speed with WPA2 security.

What is peer-to-peer on iPhone?

Apple platforms support peer-to-peer Wi-Fi, which allows devices to communicate even if they're not on the same infrastructure Wi-Fi network. This technology is used by AirPlay, AirDrop, and so on.


2 Answers

iOS 7 adds the Multipeer Connectivity Framework for exactly this purpose.

like image 195
darrinm Avatar answered Sep 22 '22 09:09

darrinm


Have you thought of using Apple's GameKit framework? I've used it in the past for some simple communication between devices. It's really simple and can get you out of the gate quickly. This looks like a good tutorial.

like image 45
Mr Rogers Avatar answered Sep 22 '22 09:09

Mr Rogers