update api usage for host_ip