If you mean from player's perspective, one person needs to "port forward" and then the other connects to them by IP-port after they host a game.
If you mean implementation-wise, it is deterministic networking over UDP protocol.