move hostname discovery to LearnHostname()
call LearnHostname() in client
don't call LearnHostname() during testing