We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4bc7cd commit 10903a2Copy full SHA for 10903a2
UnityMcpBridge/Editor/UnityMcpBridge.cs
@@ -45,8 +45,8 @@ public static void StartAutoConnect()
45
46
try
47
{
48
- // Discover new port and save it
49
- currentUnityPort = PortManager.DiscoverNewPort();
+ // Reuse stored project port when available to avoid port changes during setup
+ currentUnityPort = PortManager.GetPortWithFallback();
50
51
listener = new TcpListener(IPAddress.Loopback, currentUnityPort);
52
listener.Start();
0 commit comments