Support IPv6 for API

Support IPv6 for API
comment is needed- what is protocol 17?