ShadowJonathan / eduP2P

An authenticated peer-to-peer network overlay
MIT License
3 stars 1 forks source link

Add high-low STUN to control server #44

Open ShadowJonathan opened 3 months ago

ShadowJonathan commented 3 months ago

Relays have 1 STUN port, while I want to add 2 STUN ports to the control server as well.

This is because with this configuration (1 server with 2 ports, and another server with 1 port) you could determine between all three types of NAT;

https://stackoverflow.com/questions/72805316/determine-nat-mapping-behaviour-using-two-stun-servers

Why not on the relay? Because doing it for every relay would leave 2 ports open, while you can reduce it by doing this trick only on control.

A minimal (healthy) setup would require 1 relay at minimum anyways.