Using IP Addresses
The data providers support Internet Protocol (IP) addresses in IPv4 and IPv6 formats. If your network supports named servers, the server name specified in the data source can resolve to an IPv4 or an IPv6 address.
The EnableIPv6 connection string option, when set to True, allows a client with IPv6 protocol installed to connect to the server using either an IPv4 address or an IPv6 address. For more information about IPv6 formats, see IPv6 in Getting Started with PSQL.