Remote connection with PostgreSQL only works after PING

1

I have a JAVA application running on one server and the database running on another.

Both servers are connected and on the same network, postgreSQL is enabled to receive external connections.

But when I try to connect to the database from the application machine, I get the connection error refused. But I just ping the database server to the application machine that the connection goes live.

Can anyone explain the reason and solution to this problem?

Thank you!

    
asked by anonymous 03.07.2018 / 22:04

0 answers