title: PostgreSQL: error with pg_hba.conf entries
body: <p>I am trying to connect to a PostgreSQL database I set up on a remote machine.</p>
  
  <p>I get the following error:</p>
  
  <pre><code>org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "XX.X.XXX.XX", user "postgres", database "XXXXX", SSL off
  </code></pre>
  
  <p>I tried to modify the pg_hba.conf file by adding the following line:</p>
  
  <pre><code>host    all    all   X.X.XXX.XX/32    trust
  </code></pre>
  
  <p>(where X.X.XXX.XX is the ip address of the client)</p>
  
  <p>and also the postgresql.conf file by adding</p>
  
  <pre><code>listen_addresses = '*'
  port = 5432
  max_connections = 100
  </code></pre>
  
  <p>But I still get the same error message.</p>
  
  <p>When running the database locally, however, it works.</p>
  
  <p>I am running the database (Postgres 9.3) on a Mac.
  The client is on another Mac, running Java with JDBC.</p>
  
  <p>Please let me know if you have any suggestion.
  Thank you!</p>