Remove IPv4/IPv6 from $url and hostname