remove urlsplit.netloc which doesn't work on IPs