debug ip detection problem