iOS objective c socket p2p connection with peers behind NAT
Asked Answered
L

0

6

I have to implement socket communication in iOS (Objective-C) between two peers located behind NAT (in different networks). Are there any techniques allowing me to achieve this? Basically I 'm looking for some STUN, TURN implementation, that would allow me find out external IP/Port address.

Thanks in advance, Leonid

Larynx answered 13/3, 2014 at 15:10 Comment(5)
Looks like I found something code.google.com/p/tcmportmapperLarynx
unfortunatelly that library is only for mac osLarynx
Just started investigation in similar question, and found this app: linphone.org. You could look through it's source code, maybe you'll find out answer to your question.Jackdaw
Have you tried Hole Punching?Beer
One option is to have both peer connect to a server. Your server code is then responsible for relaying data between the 2 peersWhole

© 2022 - 2024 — McMap. All rights reserved.