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

Author Topic: How to get UDP working accross multiple computers connected to different network  (Read 2692 times)

0 Members and 1 Guest are viewing this topic.

Boby4458

  • Newbie
  • *
  • Posts: 1
    • View Profile
Hey everyone!

I am new to SFML and Network Programming but I really love multiplayer games so I decided to dive into the world of networking and socket programming. I planning on making a game using Unity (C#) and using SFML for the server-side. I've read a bit of the SFML networking docs and have created a simple server and client which send messages to each other. Now, I was wondering how I could get this to work online? How could I get my program to communicate with another instance of it on my buddy's computer? I know this is probably a very newbie question. Apparently I have to do port forwarding and I am a bit confused. Could anyone point my in the right direction as to what I have to do to get this actually working online across different networks?

Thanks in advance! 

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
If you only deal with UDP, you can use technics such as "UDP hole punching" (Google it) to avoid port forwarding.
Laurent Gomila - SFML developer

 

anything