update client example
improve hostLookUp for client-side