code: def check_foreign():
      
      if not config.dbserver.multi_user:
          remote_server_path = logs.dbcmd('get_path')
          if different_paths(server_path, remote_server_path):
              return('You are trying to contact a DbServer from another'
                     ' instance (got %s, expected %s)\n'
                     'Check the configuration or stop the foreign'
                     ' DbServer instance') % (remote_server_path, server_path)
docs: Check if we the DbServer is the right one