If any of that is wrong, please enlighten me, I didn't realize peer to peer connections could be as simple as this.
If any of that is wrong, please enlighten me, I didn't realize peer to peer connections could be as simple as this.
once the ice candidates are exchanged each side starts spraying the other with STUN messages to addresses ranked by "candidate pairs" that potentially could make a connection until one is found.
this is simplified. there are mechanics like "trickle ice" and fallbacks to proxying via TURN servers.
then there's the alleged idea this is all part of a webrtc "standard", which is laughable cause no browser follows the wild collection of RFCs that supposedly makes up the standard and the only reason any of it works is because there's a non written down general consensus of what's required.
The only extra thing that STUN does is establish a hole punch. It isn't enough to just get your public hole, but you also do a temporary 'port forward' to the person that made the STUN request.