Support IPv6 for API