Updated update_ip_address to look-up ip by id