MainServer: use the hostname not IP address in HandleQueryRecording