ICE Library, STUN, TURN for iOS iPhone

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

  • Is there an open source iOS (library) open source that supports the same?

  • Does FaceTime on iPhone also use ICE, STUN, TURN to bypass NAT, just like the iOS SDK provides such APIs?

  • I found the nICRr code in the source code (www.resiprocate.org), which I can test on Mac OS X for the STUN part. Has anyone tried to use the same for iOS 4.0 or higher?

Thanks Rodney

+4
source share
3 answers

below is the answer to my own requests Is there an open source iOS (library) that supports the same? Yes, the source code is available, it has a nicer folder. can it be compiled with mac os x and ios with some effort FaceTime on iPhone also uses ICE, STUN, TURN to bypass NAT, just like the IOS SDK provides such APIs? - No I found the nICRr code in the source code (www.resiprocate.org), which I can test on Mac OS X for the STUN part. Has anyone tried to use the same for iOS 4.0 or higher? - it can be easily recompiled into ios4

+1
source

1> use PJSIP, it has all the elements you request, and now they are built correctly on iOS

2> no

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

+5
source

It is not open-source, but we have compiled a library called IceLink that makes P2P streams using ICE / STUN / TURN with full NAT Bypass. It has client SDKs for iOS, Mac and others.

+3
source

Source: https://habr.com/ru/post/1343115/


All Articles