This version of Unity is unsupported.
Method group is Obsolete

NetworkBehaviour.connectionToServer

Obsolete The high level API classes are deprecated and will be removed in the future. public NetworkConnection connectionToServer;

Description

The NetworkConnection associated with this NetworkIdentity. This is only valid for player objects on the server.