Unity-Technologies / Unity-Technologies/com.unity.netcode.gameobjects

Allow deactivation of Connected client ids synchronization

Open
#2,815 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
C#
Stars
2.3k
Forks
461
Avg merge
3d 16h
Merged PRs (30d)
20

Description

Hello, currently the server synchronizes its list of clients connected to the server with all authenticated clients on the server. In my current project, I can't think of any use cases where it's necessary for the server to synchronize all connected clients (except maybe when the server is also a client?).

Being able to disable this function would reduce the number of packets sent by the server (especially on instanced MMOs like my project, which have several hundred connections per server), reduce the chances of attacks on a server instance in one sense because it would avoid a client knowing the number of players on the server.

If this isn't possible, maybe allow to filter which client ids can be shared with clients? In the case where we have a server with instantiated/isolated scenes (as on my project) I don't want clients to see all clients connected to the server, but only the clients in the scene they are in.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are identified in the issue. Start by locating the server-side synchronization of connected client IDs in Netcode for GameObjects, then determine whether the intended behavior is disabling synchronization or filtering IDs by scene. Done should mean one agreed configuration and verification that clients receive only the intended connected-client information.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.