use ip_equal? to compare IPs