compare IPs as well as a workaround