I'd like to see UDP hole punching in action. I tested it under Linux, using Ncat. Here's what I tried:
- Open port 1234/UDP on host A and port 12345/UDP on host B's firewall (I'm still behind NAT, but if the packet reaches me, at least kernel won't discard it)
- sudo ncat -u -p 1234 B 12345 on host A, then try sending a packet to punch a hole
- sudo ncat -u -p 12345 A 1234 on host B, then try sending another packet to punch a hole
- Try communicating from host A to B and the other way round and see that no packet reaches the other side.
What could I be doing wrong? I know that host A can create a hole to host B because I observed a P2P communicator doing that, but I hadn't yet checked the other way.