Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

MasterServer.port

Switch to Manual
public static var port: int;

Description

The connection port of the master server.

By default this is a server run by Unity Technologies.

	function ResetIP() {
		MasterServer.ipAddress = "127.0.0.1";
		MasterServer.port = 10002;
	}