Error in ip checking