Updated update_ip_address to look-up ip by id
Updated update_ip_address to (dis)associate appropriate ports