diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 4461a5351..034349bbb 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -400,6 +400,7 @@ public void StartClient(Uri uri) public virtual void StartHost() { OnStartHost(); + SetupServer(); // SetupLocalConnection needs to be called BEFORE SpawnObjects: // https://github.com/vis2k/Mirror/pull/1249/ @@ -427,8 +428,6 @@ public virtual void StartHost() // isn't called in host mode! NetworkClient.SetupLocalConnection(); - SetupServer(); - // scene change needed? then change scene and spawn afterwards. if (IsServerOnlineSceneChangeNeeded()) {