get_live_ip fn modified