RemoteConnection (RemoteState connection, final RunnerSettings settings) { final RemoteConnection remoteConnection = connection.getRemoteConnection(); GenericDebuggerRunnerSettings debuggerRunnerSettings = (GenericDebuggerRunnerSettings)settings; if (debuggerRunnerSettings != null) { remoteConnection.setUseSockets(debuggerRunnerSettings.getTransport() == DebuggerSettings.SOCKET_TRANSPORT); remoteConnection.setDebuggerAddress(debuggerRunnerSettings.getDebugPort()); } return remoteConnection; }