Legacy Documentation: Version 5.3
LanguageEnglish
  • C#
  • JS

Script language

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

MasterServer.ipAddress

public static string ipAddress;

Description

The IP address of the master server.

By default this is a server run by Unity Technologies.

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void ResetIP() { MasterServer.ipAddress = "127.0.0.1"; MasterServer.port = 10002; } }