<div><br></div>I'd be interested in seeing what you come up with.<div><br></div><div>I wrote code for this but have not tested it yet.</div><div><br></div><div>My research indicated that what was needed was as simple as sending some packets to the appropriate address and port.</div>
<div>These packets were seen by the router and they caused it to create a 'hole' through which you could communicate.</div><div>I hacked calls to enet low level send routines to send three packets before attempting a connection.</div>
<div>The theory sounded good but I don't know how it will work in practice.</div><div><br></div><div><br><div class="gmail_quote">On Wed, Jun 6, 2012 at 1:27 PM, James B <span dir="ltr"><<a href="mailto:z2895@hotmail.com" target="_blank">z2895@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I have multi-player working in my game :)  Thank you to all who have contributed to enet!<br>
<br>
I am now working on the master server list and NAT connection issues.  For this I understand I need NAT punch through, I have been reading up on it today and have come across several posts on the subject, including the old enet thread here:  <a href="http://lists.cubik.org/pipermail/enet-discuss/2011-May/thread.html#1748" target="_blank">http://lists.cubik.org/pipermail/enet-discuss/2011-May/thread.html#1748</a><br>

<br>
My question is if you were adding NAT punch through to a game that uses enet how would you go about it?  Is there an addon source to enet I am missing which may be useful?  Should I simply create hosts on each client that connect to a third party as suggested in the enet discussion from 2011?  Should I use the MiniUpnp library?  Or perhaps Google's libjingle?  Are there any open source lobby/master servers that I can use to do this?<br>

<br>
<a href="http://en.wikipedia.org/wiki/UDP_hole_punching" target="_blank">http://en.wikipedia.org/wiki/UDP_hole_punching</a><br>
<br>
<a href="http://miniupnp.free.fr/" target="_blank">http://miniupnp.free.fr/</a><br>
<br>
<a href="http://maemo.org/development/documentation/manuals/3-x/howto_use_stun_bora/" target="_blank">http://maemo.org/development/documentation/manuals/3-x/howto_use_stun_bora/</a><br>
_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>---<br>"There's a zombie outbreak!  Oh, no, wait a second...  It's just a bunch of kids texting."<br>
</div>