optionally take a hostname in client_of_fd