SFML community forums

Help => Network => Topic started by: ryansclzo on June 04, 2018, 11:38:43 pm

Title: Online games using UDP and making clients port forward
Post by: ryansclzo on June 04, 2018, 11:38:43 pm
Using SFML and it's udpsockets for an online game (server/client architecture), is it necessary to make all clients port forward for their incoming data?

In my game the server has it's incoming port as 5600, and the clients are bound to a random port right before they connect to the server. So when the server receives the client's port to broadcast to, the client must have their port forwarded or else they will receive no data.
Title: Re: Online games using UDP and making clients port forward
Post by: Gleade on June 05, 2018, 04:21:16 am
Check out UDP hole-punching.