Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

NetworkClient.serverPort

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.