title: PostgreSQL could not connect to server: Connection refused
body: <p>I'm working fine these past months but yesterday suddenly my PostgreSQL is showing this error in all my applications.</p>
  
  <p><code>could not connect to server: Connection refused (0x0000274D/10061)</code> </p>
  
  <p>Is the server running on host "IP address" and accepting TCP/IP connections on port 5432?</p>
  
  <p>And this happens from nothing, I do anything in my database and in my server, I have the server in DigitalOcean and they say that don't touch in anything in my server.</p>
  
  <p>I'm already doing this </p>
  
  <pre><code>listen_addresses = '*'
  port = 5432***  
  host  all  all 0.0.0.0/0 md5
  </code></pre>
  
  <p>this configuration already is the same when i'm installed my PostgreSQL and working it all these months and one day this error occurs, I don't know what happens. </p>
  
  <p>My version from PostgreSQL is 9.5 and running a Ubuntu on my server.</p>