diff --git a/doc/Guides/GameObjects/SpawnObject.md b/doc/Guides/GameObjects/SpawnObject.md index 4c3ea5b57..e2b5f05cd 100644 --- a/doc/Guides/GameObjects/SpawnObject.md +++ b/doc/Guides/GameObjects/SpawnObject.md @@ -53,8 +53,8 @@ public void ServerListen() NetworkServer.RegisterHandler(OnServerConnect); NetworkServer.RegisterHandler(OnClientReady); - if (NetworkServer.Listen(7777)) - Debug.Log("Server started listening on port 7777"); + // start listening, and allow up to 4 connections + NetworkServer.Listen(4); } // When client is ready spawn a few trees