title: Postgresql refusing connection to server
body: <p>I have been trying to connect to my postgresql 9.3 server but I keep getting this error.</p>
  
  <pre><code>Server doesn't listen
  The server doesn't accept connections: the connection library reports 
  could not connect to server: Connection refused (0x0000274D/10061) 
  Is the server running on host "localhost" (::1) and accepting TCP/IP 
  connections on port 5433? could not connect to server: Connection     
  refused (0x0000274D/10061) Is the server running on host "localhost" (127.0.0.1) 
  and accepting TCP/IP connections on port 5432? 
  </code></pre>
  
  <p>I have tried connecting through pgadmin3 and the command line.</p>
  
  <pre><code>psql.exe -h localhost -U postgres
  </code></pre>
  
  <p>This command also gives the same error.</p>
  
  <p>I am on a windows machine. I have tried creating a separate server also with the same result.</p>
  
  <p>I have no idea whats happening. Please help.</p>
  
  <p>Thanks</p>