Take the 2-minute tour ×

Does Apple allow the use sockets (TCP or UDP) in iOS apps and allow them on the AppStore? If yes, please provide the official confirmation from Apple or some apps examples.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Yes. Start with this landing page for iOS Networking topics. If you want to use UDP/TCP look at the CFNetwork Programming Guide; in particular streams.

Typically you would integrate bonjour in to your application so that you have the information needed to establish TCP/UDP communication via streams (BSD sockets):

Bonjour is the powerful zero configuration protocol from Apple that makes it easy to find systems and services on a local network automatically. Many services and applications on Mac OS X that have networking capabilities use Bonjour, from printer discovery, to chatting in iChat, to music sharing in iTunes. Bonjour includes a sophisticated, yet easy-to-use, programming interface that is accessible from Cocoa Touch or low-level C language.

share|improve this answer

Your Answer


