mas-bandwidth / yojimbo

A network library for client/server games written in C++
BSD 3-Clause "New" or "Revised" License
2.45k stars 238 forks source link

Question - NAT Punch-through #159

Closed onehundredfeet closed 2 years ago

onehundredfeet commented 2 years ago

Hi,

I can't seem to find any NAT punch-through logic in Yojimbo. Is there a natural path to extending the matcher system to include nat-punch through to allow a host and client to see each other across a NAT?

Cheers, Ryan.

gafferongames commented 2 years ago

Not supported. Yojimbo is for client/server games where the server has a public IP address.

eidetic-av commented 2 years ago

@onehundredfeet for anyone thinking of this, it may be possible to use this library in conjunction with a STUN server to determine the external IP required for communication behind a NAT.

lolirelia commented 3 months ago

@gafferongames I imagine it's still sufficient for P2P if both players are able to traverse NAT through other means?

gafferongames commented 3 months ago

Potentially, but unsupported.