drawpile / Drawpile

A collaborative drawing program
http://drawpile.net/
GNU General Public License v3.0
1.03k stars 131 forks source link

Using a STUN server #354

Open ghost opened 8 years ago

ghost commented 8 years ago

Hello!

If my searching through the settings was thorough enough, there seems to be no option to use a STUN server to establish a connection yet. Would it be possible to implement such a feature?

If yes, it might help people behind a NAT connect together better, since UPnP does not always work for everyone. If technically applicable, I believe this would be a great addition and a step towards enabling all people to draw together freely.

callaa commented 8 years ago

STUN is only part of the solution. To actually establish a connection to a host behind NAT, a NAT piercing protocol is also needed. If a library that packages this functionality exists, I can see if its feasible to include it.

ghost commented 8 years ago

I am not sure if I understand the exact requirements well, but I found "libnice" (links below), which looks like it could meet them. https://nice.freedesktop.org/wiki/ https://github.com/libnice/libnice