Cannot connect locally to postgres

Hi there,

I’m using fly proxy to connect:

fly proxy 54321:5432 -a

Running fly postgres connect -a runs fine
But trying psql postgres://postgres:@localhost:54321, or trying to use a client like pgAdmin returns:

psql: error: connection to server at “localhost” (::1), port 54321 failed: expected authentication request from server, but received H

Anyone any idea?

Thanks
Justin

Hi… I would try a lower port number:

$ fly proxy 15432:5432 -a db-app-name

(You were up in the ephemeral port range, earlier.)

Hope this helps!

Added postgres

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.