This version of Unity is unsupported.
Method group is Obsolete

NetworkClient.serverPort

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

Description

The port of the server that this client is connected to.

This will be zero if the client has not connected yet.