Deal better with url hostname+port configurations if host isn't specified