Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Online games using UDP and making clients port forward  (Read 2398 times)

0 Members and 1 Guest are viewing this topic.

ryansclzo

  • Newbie
  • *
  • Posts: 3
    • View Profile
Online games using UDP and making clients port forward
« 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.

Gleade

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
Re: Online games using UDP and making clients port forward
« Reply #1 on: June 05, 2018, 04:21:16 am »
Check out UDP hole-punching.

 

anything