Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ICE, STUN, TURN library for iOS iPhone

I need to establish a P2P UDP and TCP Connection between two Users. Both of them are behind a NAT. A little research leads me to STUN, TURN and ICE.

  1. Is there any open source iOS (library) which support the same?

  2. FaceTime in iPhone also uses ICE, STUN, TURN to NAT traversal, so does iOS SDK exposes such API's?

  3. I found nICRr code in resiprocate source code (www.resiprocate.org), which I am able to test on Mac OS X for STUN part. Did anybody tried using the same for iOS 4.0or above?

Thanks, rodney

like image 869
Rohit Avatar asked Jan 21 '23 06:01

Rohit


2 Answers

1> use PJSIP it has all the items you request and it now builds properly on iOS

2> no

3> I dont know, but PJSIP has STUN, TURN and ICE libraries and its modular

like image 126
Tony Million Avatar answered Jan 28 '23 20:01

Tony Million


It's not open-source, but we put together a library called IceLink that does P2P streaming using ICE/STUN/TURN with full NAT traversal. It has client SDKs for iOS, Mac, and others.

like image 20
Anton Avatar answered Jan 28 '23 20:01

Anton