How do you use psql client to connect to a postgresql ipv6 host?
3
votes
2
answers
6202
views
# postgresql.conf
listen_addresses='::'
and
# 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.
Asked by Srikanth
(161 rep)
Aug 27, 2016, 11:25 AM
Last activity: Apr 25, 2025, 11:51 AM
Last activity: Apr 25, 2025, 11:51 AM