Connection refused to postgres on dreamcompute

I’m using DBeaver to try to connect to the postgres I have setup on dreamcompute.

When logged into my instance I can go into postgres, I have opened the ports on host all all 0.0.0.0/0 and changed all connection to accept all connections '*'. After running into an issue connecting I change the md5 security to scram-sha-256.

I’m still having trouble connecting.

I’m using my instance’s ip address as my host.

I have setup a user and password. I have also setup my a database and I can see them all in my instance when I do \l. Also my post is 5432 and connected.

Why is connection being refused and how can I fix this?