sourencho / ungroup_game

A multiplayer game about temporary alliances written with a custom engine in C++ and SFML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add support for symmetric NATs

copacetic opened this issue · comments

Clients can't get game state from server when running behind a mobile hotspot or from the Recurse Center. Apparently both use Symmetric NATs!

These NAT's will rewrite the source port of outbound traffic. The server uses the port it gets from the registerClient flow which occurs over the TCP connection. Since this port is the one the client knows of locally and not the one the router rewrites the port to, server responses don't currently reach a client behind a symmetric NAT.