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

Listen() public static method

public static Listen ( MatchInfo matchInfo, int listenPort ) : bool
matchInfo UnityEngine.Networking.Match.MatchInfo
listenPort int
return bool
        public static bool Listen(MatchInfo matchInfo, int listenPort)
        {
            if (!matchInfo.usingRelay)
            {
                return instance.InternalListen(null, listenPort);
            }
            instance.InternalListenRelay(matchInfo.address, matchInfo.port, matchInfo.networkId, Utility.GetSourceID(), matchInfo.nodeId);
            return true;
        }

Same methods

NetworkServer::Listen ( int serverPort ) : bool
NetworkServer::Listen ( string ipAddress, int serverPort ) : bool