Network.InitializeServer Manual     Reference     Scripting  
Scripting > Runtime Classes > Network

static function InitializeServer (connections : int, listenPort : int) : NetworkConnectionError


Initialize the server.

connections is the number of allowed incoming connections / number of players allowed in the game. listenPort is the port number we want to listen to.

function LaunchServer () {
Network.incomingPassword = "HolyMoly";
Network.InitializeServer(32, 25000);