Changed way in which ip is found