update alive ip detection code