added ensure rescue is not working for ip address