# postgresql.conf listen_addresses='::'
# pg_hba.conf hostssl webdb webserver ::0/0 cert
The postgresql server is running on docker with pingable ipv6 address of
"GlobalIPv6Address": "fe80::242:ac12:2" - so no firewalls obstructing.
I am using the following command to connect
psql --command="select * from test;" -d webdb -h fe80::242:ac12:2 -p 5432 -U postgres psql: could not connect to server: Invalid argument Is the server running on host "fe80::242:ac12:2" and accepting TCP/IP connections on port 5432?
Why is the host not recognized? Is it not possible to use ipv6 with psql? Also, I did not find an ssl parameter option in psql.