UnityEngine.Networking.NetworkServer.Listen C# (CSharp) Method

Listen() public static method

Start the server on the given port number. Note that if a match has been created, this will listen using the Relay server instead of a local socket.

public static Listen ( string ipAddress, int serverPort ) : bool
ipAddress string The IP address to bind to (optional).
serverPort int Listen port number.
return bool
        public static bool Listen(string ipAddress, int serverPort)
        {
            return instance.InternalListen(ipAddress, serverPort);
        }

Same methods

NetworkServer::Listen ( MatchInfo matchInfo, int listenPort ) : bool
NetworkServer::Listen ( int serverPort ) : bool