Report this

What is the reason for this report?

Cannot remote connect to postgresql

Posted on July 16, 2020

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.



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.