diff --git a/Assets/Mirror/Core/NetworkServer.cs b/Assets/Mirror/Core/NetworkServer.cs index 76b9c4fd4..876cbb516 100644 --- a/Assets/Mirror/Core/NetworkServer.cs +++ b/Assets/Mirror/Core/NetworkServer.cs @@ -122,6 +122,17 @@ public static void Listen(int maxConns) active = true; RegisterMessageHandlers(); + + if (Transport.active is PortTransport portTransport) + { +#if UNITY_SERVER + Console.ForegroundColor = ConsoleColor.Green; + Console.WriteLine($"Server listening on port {portTransport.Port}"); + Console.ResetColor(); +#else + Debug.Log($"Server listening on port {portTransport.Port}"); +#endif + } } // initialization / shutdown ///////////////////////////////////////////