Report this machine as a dedicated server.
function StartServer() { Network.InitializeServer(32, 25002); // Not running a client locally MasterServer.dedicatedServer = true; MasterServer.RegisterHost("MyUniqueGameType", "JohnDoes game", "l33t game for all"); }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void StartServer() { Network.InitializeServer(32, 25002); MasterServer.dedicatedServer = true; MasterServer.RegisterHost("MyUniqueGameType", "JohnDoes game", "l33t game for all"); } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def StartServer() as void: Network.InitializeServer(32, 25002) MasterServer.dedicatedServer = true MasterServer.RegisterHost('MyUniqueGameType', 'JohnDoes game', 'l33t game for all')