Since you mention TIdHTTP, I suspect
it is treating your URLs as IPv4 unconditionally. For IPv6, you have to wrap hostnames in brackets, eg: http://[hostname]:port/resource
. If you get an HTTP redirect to a different hostname, that might switch back to IPv4. I will have to check that.