foxssake / noray

Simple connection orchestrator and relay
MIT License
18 stars 5 forks source link

Register everyone with external address #20

Closed elementbound closed 1 year ago

elementbound commented 1 year ago

Background

When connecting players via a handshake, we basically don't know the joiner's external address. The socket may have the joiner's IP, but not the port. Thus, the joiner would have to free the Noray TCP socket, bind that port to a UDP socket and hope the handshake works.

Instead, the idea is for every player to register as "host" and register its remote IP.

Done criteria