I have the same problem 8 months ago. The problem is that you have not allowed the connection from your host to the server. You need to edit the pg_hba.conf file on the server and add your host, or network. Bin Wang
pgsql-interfaces by date:
Соглашаюсь с условиями обработки персональных данных