How to make networking without exposing peers?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JeremyStarTM

How can I setup a account server for my game (it needs to be separate) using Godot 4 with ENet or WebRTC without exposing all connected peers?

What do you mean by “exposing” peers?

Game Development Center has an excellent series on networking in godot, in his proposed server setup you might find your answer: https://www.youtube.com/playlist?list=PLZ-54sd-DMAKU8Neo5KsVmq8KtoDkfi4s

zhyrin | 2023-03-09 22:06

I meant that malicious actors might get the IP addresses of all peers connected to the account server since I though Godot could only do Peer2Peer. Thanks for the playlist though, I will have a look at it :slight_smile:

JeremyStarTM | 2023-03-10 13:35

Oh no, not at all. While peer to peer is possible, you can also make authorative servers as well.

zhyrin | 2023-03-10 14:45