title: PG::CONNECTION BAD connecting to pgAdminIII cloud 9 IDE
body: <p>New to web development.  Trying to connect and register new server for pgAdminIII.  (using cloud 9 ide)..</p>
  
  <p>I get this error when viewing in the browser..</p>
  
  <pre><code>_PG::CONNECTION BAD _
  could not connect to server: Connection refused Is the server running on 
  "localhost" (::1) and accepting TCP/IP connections on port 5432? 
  could not connect to server: Connection 
  refused Is the server running on host "localhost" 
  (127.0.0.1) and accepting TCP/IP connections on port 5432
  </code></pre>
  
  <p>PS. trying to access via new user "ubuntu" SUPERUSER created..</p>
  
  <p>How can I fix this?  </p>
  
  <p>PPS. On cloud 9's community forum, an employee says.. 
  "<em>Only ports 8080, 8081 and 8082 are open for workspaces so if you want to access the DB externally you'll need to run it on one of these ports. Make sure you can access it with curl from a local terminal and ensure it's listening on 0.0.0.0 not 127.0.0.1, as the latter only allows local connections.</em>"</p>
  
  <p>Lastly, their ide comes with postgres installed, all I needed to do, was set it up.. </p>
  
  <p>How do I use the above info while trying to register the new server in order to use the gui?</p>
  
  <p>Let me know if I need to include anything else. </p>
  
  <p>Thanks. </p>