This version of Unity is unsupported.
Removed

Network.connections

Obsolete The legacy networking system has been removed in Unity 2018.2. Use Unity Multiplayer and NetworkIdentity instead. public static NetworkPlayer[] connections;

Description

All connected players.

On a client this contains only the server.