psql connection times outI

I'm trying to connect to my db via psql on Windows and every combo of connection details fails:

psql -h db.[myid].supabase.co -p 5432 -d postgres -U postgres


psql: error: connection to server at "db.[myid].supabase.co" ([ip]), port 5432 failed: Connection timed out (0x0000274C/10060)
        Is the server running on that host and accepting TCP/IP connections?


When I use DBeaver to connect it works. When I use the REST API via a web app it works. Why is the psql command not working?
Was this page helpful?