Original Post
I've been reading into NAT punch through for may game and think I finally have a good 'sequence of events'. My game is p2p with one peer being a 'host'/server. The only server we have is the web server (so no NAT introducer). I am using enet for communication. does this sound kinda right: * First I create a UDP socket to a STUN server; * I next perform STUN client stuff :P and find my extern. IP/port; * I post this to my lobby server (MySQL + PHP script) via HTTP; * While waiting for the first client send 'keepalive' through the socket (0xFF) & * once one client is connected I dont need 'keepalive' as the NAT table will be sustained by the keepalive sent by the game code. also - how often should I keep alive? 5sec, 10sec, 20sec... more? Less?