Support IPv6 for API

Support IPv6 for API
needs to start just after """