Question

Cannot remote connect to postgresql

I’m having problems to remote connect to PostgreSQL. I’m getting this error

I’m using right port, host, username, password and allowed my ip in TRUSTED SOURCES.

A week ago i tried in my old windows laptop and works fine, using DBeaver.

Now I’m on a macbook pro, tried using DBeaver, and psql but I couldn’t connect. I have firewall off.

I do not know what it could be.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello, @PalumboWeb

Could you please confirm if you can still access the database using DBeaver from your Windows machine? The thing is it’s good to know whether the issue with the client on your MAC or with the database in general.

Alternatively you can try to access the database using other clients from your Macbook like pgadmin and psql just to test if everything is okay:

https://www.digitalocean.com/docs/databases/postgresql/how-to/connect/

Hope that helps!

Regards, Alex

I have the same issue. Did anyone solve it? Feels like that adding trusted sources is not working for public IPs. But it was before… so not sure what is happening.

Edit: As I posted it, I actually figured it out. If you open digital ocean in Safari, Safary routes your traffic via apple private relay (for privacy) which is what obscures the real IP address. Hope that helps someone.