by huhtenberg · 15y ago · 0 comments
[1] Just need to predict the Internet-facing ports for both peers and then instruct them to connect() towards each other at these ports. The rest is handled natively by TCP, via the simultaneous open scenario [2].
[2] http://www.ietf.org/rfc/rfc793.txt, sect. 3.4, fig. 8
Got the answer from the paper: When a client wishes to connect to a peer, a request is also forwarded through the Spotify server asking the connectee to attempt a TCP connection back to the connecter. This means that as long as one of the two peers can accept incoming connections, the connection will succeed.