public void StartServer() { NetworkTransport.Init(); ConnectionConfig cc = new ConnectionConfig(); unreliable = cc.AddChannel(QosType.Unreliable); reliable = cc.AddChannel(QosType.Reliable); reliable_ordered = cc.AddChannel(QosType.ReliableSequenced); HostTopology topo = new HostTopology(cc, MAX_USER); //server only host_id = NetworkTransport.AddHost(topo, PORT, null); web_host_id = NetworkTransport.AddWebsocketHost(topo, WEBPORT, null); server_started = true; Debug.Log("Opening connection on port: " + PORT + " and webport: " + WEBPORT); lobby.CreateLobby(); }