Godot Version
4.2.2-rc3
Question
I would like to be able to disable communication between peers, leaving only client-to-server communication
4.2.2-rc3
I would like to be able to disable communication between peers, leaving only client-to-server communication
What do you mean? ENet follows the Server-Client model, there should be no direct communication between peers.
Because of this documentation here: SceneMultiplayer — Godot Engine (stable) documentation in English
Again: There won’t be any direct communication between clients. All communication will go through the server (that’s what the word “relay” means).
If you don’t want clients to be notified about other clients connecting or disconnecting to the server, you can set server_relay = false
, yes. That’s all there is to it. If you have a more concrete question than that, please go into more detail.
@qjpg unless you’re doing port forwarding, all traffic goes through your Enet server and you only have client-to-server communication.
The server abstraction might make it look like clients are talking directly, but the server is automatically handling it for you.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.