client: save IP and hostname when the client connects