title: Cannot connect to postgres from remote host
body: <p>I have a database server (192.168.1.50) running postgres. I have created a database named "testdb" and a user "testuser" with password "testuserpw".<br>
  Locally, I can connect to the db using:</p>
  
  <pre><code>psql -d testdb -U testuser
  </code></pre>
  
  <p>When I issue the command from another host (192.168.1.60):</p>
  
  <pre><code>psql -h 192.168.1.50 -d testdb -U testuser
  </code></pre>
  
  <p>I have the error:</p>
  
  <pre><code>psql: could not connect to server: Connection refused
  Is the server running on host "192.168.1.50" and accepting
  TCP/IP connections on port 5432?
  </code></pre>
  
  <p>Any idea ?</p>