support IPv6 and external