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!