0

Directly it's impossible, right?

Using an intermediate server isn’t an option because I have a requirement that says that a solution has to exchange lots of data and also be fast.

Although, creating a simple utility, if required, that’d run on both nodes locally and thus facilitates establishing a connection, would be ok.

It'll be a UDP connection.

How to do it?

1 Answers1

1

As you correctly determined, direct connection is impossible. One needs the help of an external relay reachable from both peers to transfer the data, i.e. TURN or similar. If you don't want to rely on a third-party you need to run this relay yourself. If you don't want this either, your problem can not be solved.

Steffen Ullrich
  • 13,227
  • 27
  • 39