Erro no host (jdbc)

Unable to connect
Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
at org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:167)
at org.postgresql.Driver.connect(Driver.java:122)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at ConectarPostgresql.<init>(ConectarPostgresql.java:23)
at ConectarPostgresql.main(ConectarPostgresql.java:47)

Aparentemente o PostgreSQL não está configurado para receber conexões remotas. Não é bem uma questão java, mas sim de configuração da segurança do PostgreSQL. Dê uma olhada em http://pgsqlbr.querencialivre.rs.gov.br/index.php?corpo=tut_inst_linux2

[]s, Welington B. Souza

Consegui resolver valeu