I've never fully understood how NAT traversal works and I went on a dive today.
Run whatismyip.py on a public server. This plays the role of a STUN server.
Run easynat.py on a laptop behind a home router.
You could run hardnat.py also on a laptop behind a home router, but don't do it on the same home router because
"hairpinning" is almost always broken.