fixed receiveFile() method to process server name