There should be no problem then, pgAdmin should be able to connect. Did you somehow deny network access to pgAdmin, because of which it is not able to reach?
Please help me connect to the postgres db instance on Amazon EC2 Linux. I am able to connect to the postgres database across the network manually using command line, except pgAdmin 4 Client installed on my Mac Below is the connection setup and failed. The error I received is "Time out"
Screenshot below is successful. This connection manually is using psql command