how to use Relay to connect peers which are unreachable. - WeOnlyDo Discussion board

how to use Relay to connect peers which are unreachable. (General questions)

by Jasmine, Thursday, May 19, 2016, 17:28 (3108 days ago) @ ardar

Hi.

Your code looks ok, I'm not sure why disconnection occurs.

However, TCPHandler doesn't really help you connect where UDP fails, using UDP relay is much safer solution. TCP is harder to penetrate firewall if both sides are behind NAT, so I would suggest you use UDP relay for this purpose.

Jasmine.


Complete thread: