title: Access to postgresql remotely on windows
body: <p>I installed PostgreSQL version 8.3.19 on windows server 2003. After configuration, I can access locally (from a php script) but not remotely (from another similar php script, from another machine).<br>
  1) NAT is configured and tested for the port 5432<br>
  2) Firewall authorises the application<br>
  3) I set the pg_hba.conf file:  </p>
  
  <pre><code>host all all 0.0.0.0/0 md5  
  </code></pre>
  
  <p>4) I set the postgresql.conf:  </p>
  
  <pre><code>listen_addresses='*'  
  </code></pre>
  
  <p>5) I created a role with pgAdminIII for the access from an application. I declared him superuser (just for the tests) and named him TOTO<br>
  6) My local script is:  </p>
  
  <pre><code>$con=pg_connect("host=localhost port=5432 user=TOTO password=PW dbname=test")  
  </code></pre>
  
  <p>7) My remote script is:</p>
  
  <pre><code>$con=pg_connect("host=myhostname port=5432 user=TOTO password=PW dbname=test")  
  </code></pre>
  
  <p>I don't see what I could forget. Could you light me ?</p>