convert ips to range