    LaunchPort      = 9877;
    LogFile         = GetTempFileName("txt");
    LoggingSettings = OPI_TCP.GetLoggingSettings(True, 100, LogFile);
    ServerObject    = OPI_TCP.StartServer(LaunchPort, , LoggingSettings);

    // Connect to running server
    ConnectionAddress = "127.0.0.1:9877";
    ClientObject = OPI_TCP.CreateConnection(ConnectionAddress);
    If Not OPI_TCP.IsClientObject(ClientObject) Then
        Raise OPI_Tools.JSONString(ClientObject);
    EndIf;

    Result = OPI_TCP.GetLog(ServerObject);