How do you populate the networkMessage on connection?

Code Typed HLAPI( C# ), Standalone authoritative server, WAN

  • How do you populate the networkMessage to the player connection?

With:
NetworkServer.RegisterHandler( MsgType.Connect, OnServerConnect );
private void OnServerConnect( NetworkMessage networkMessage )
{ }

For example networkMessage.conn.connectionId is always 1 on multiple connected clients, while the server does increase this figure.

I think you can’t change internal messages, they get populated automatically. If you want to send more, send your own message.

I am not sure what you mean by sending more?
I am talking about the first handshake between the client and the server, where the server assigns an ID to the client… this is not happening…a bug perhaps?

I think it’s normal that the connection on every client has the same ID since the server is the only connection they have. I would have expected 0, though.

connectionIds are not shared between clients or the server. they are scoped to just the local instance.