Henauxg / bevy_quinnet

A Client/Server game networking plugin using QUIC, for the Bevy game engine.
Apache License 2.0
251 stars 16 forks source link

Add P2P through NAT Holepunching #17

Closed MalekiRe closed 1 year ago

MalekiRe commented 1 year ago

Here is some reference code I found for doing p2p holepunching with quinn. https://gist.github.com/lithdew/4a009884829ad4c0ce41e3c3e8bf039b

This would be awesome to have as an option in bevy_quinnet

Henauxg commented 1 year ago

Hello,

NAT punch-through is out of scope for now in quinnet. Mainly for 2 reasons: quinnet is client/server oriented rather than p2p, and NAT punch-through is quite some work to achieve reliably.

The gist is only doing a STUN request, which is only a first step in achieving NAT punch-through.

I'll close this issue for now.