This version of Unity is unsupported.
Method group is Obsolete

NetworkManager.networkPort

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

Description

The network port currently in use.

For clients, this is the port of the server connected to. For servers, this is the listen port.