Use compact to eliminate nil IPs.