[ENet-discuss] NAT punchthrough sample source code (yet again)?
Erwin
erwin.coumans at gmail.com
Sat May 4 13:36:58 PDT 2013
I tried it and it doesn't work for me.
I'm just looking for a working example.
Your comment is not helpful, Stefan.
Thanks,
Erwin
Sent from my iPhone
On May 4, 2013, at 12:05 PM, Stefan Lundmark <stefanlun at hotmail.com> wrote:
> Why do you doubt its working? Have you tried it before commenting? That's exactly how NAT-punchtrough works.
>
> NAT-punch isn't reliable if you're doing pure UDP. LibJingle makes sure it's stable, too.
> ENet resends lost packets and simulates connections ontop of UDP. That'll work too.
>
> Sounds like you want someone else to do the work for you.
>
>
> On 2013-05-04 18:51, Erwin Coumans wrote:
>>>> Set up a third-party ENet host C. Hosts A and B connect to C. C gives A the address of B. A directly connects to B. A and B disconnect from C.
>> I doubt this will work. What kind of addresses and ports are
>> exchanged? The global IP addresses is different from a local IP behind
>> a firewall.
>>
>> If NAT punchthrough were that simple, why would people use Libjingle for it?
>> http://maemo.org/development/documentation/manuals/3-x/howto_use_stun_bora/
>>
>>
>> It would be great if we can get a simple working sample source out of
>> this tread,
>> instead of long discussions how one could attempt to implement it.
>> Thanks!
>> Erwin
>>
>>
>>
>>>> There is no official sample, per se, but it perhaps bears repeating that a NAT punchthrough implementation is as simple as:
>>>> Set up a third-party ENet host C. Hosts A and B connect to C. C gives A the address of B. A directly connects to B. A and B disconnect from C.
>>
>> On 05/04/2013 07:30 PM, Erwin Coumans wrote:
>>> Hi,
>>>
>>> I found many discussions on the topic but
>>> no working sample code for NAT punchthrough with enet.
>>>
>>> Is there any self-contained sample source that works with enet?
>>> Thanks,
>>> Erwin
>>>
>>>
>>>
>>> _______________________________________________
>>> ENet-discuss mailing list
>>> ENet-discuss at cubik.org
>>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>> _______________________________________________
>> ENet-discuss mailing list
>> ENet-discuss at cubik.org
>> http://lists.cubik.org/mailman/listinfo/enet-discuss
>
> _______________________________________________
> ENet-discuss mailing list
> ENet-discuss at cubik.org
> http://lists.cubik.org/mailman/listinfo/enet-discuss
More information about the ENet-discuss
mailing list