Failed to connect to the running Unity Editor or standalone build.


In the test, you may see:

System.Exception: Failed to connect to localhost:19734 ---> System.Exception: Unable to locate any UnityEditor instances with a GDIOAgent configured.

In the Unity Editor console, or Player.log file (for standalone execution):

Only one usage of each socket address (protocol/network address/port) is normally permitted.

UnityEngine.Debug:LogError (object)
gdio.unity_agent.GDIOLogger:Error (object)
gdio.unity_agent.GDIOAgent:Awake ()


One or more of the following may be occurring:

Possible causeSolution
Multiple instances of the Unity Editor are open, causing port 19734 to be taken/listening.

Be sure to close all except the active editor used for testing.

The GameDriver agent is attached to more than one open scene.Only attach the GameDriver agent to one scene in your project. Typically this is the first scene to be loaded.