pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raymond O'Donnell <rod@iol.ie>
To: Archana K N <archanakknn@gmail.com>
Cc: pgsql-php@postgresql.org
Subject: Re: Cannot connect to remote postgres using php
Date: Mon, 30 Apr 2012 10:02:46 +0100
Message-ID: <4F9E5536.7000805@iol.ie> (raw)
In-Reply-To: <CACa6=i3GUa7gi0S1p6XiJ0FfBpkEKfoKn2ziCdQAzQLgyGmhpw@mail.gmail.com>
References: <CACa6=i3GUa7gi0S1p6XiJ0FfBpkEKfoKn2ziCdQAzQLgyGmhpw@mail.gmail.com>

On 30/04/2012 09:30, Archana K N wrote:
> 
> Hello,
> 
>        I am getting this error whenever I try to connect to remote computer.
> "Warning: pg_connect(): Unable to connect to PostgreSQL server: could
> not connect to server: Connection timed out (0x0000274C/10060) Is the
> server running on host "10.162.19.3" and accepting TCP/IP connections on
> port 5432?  "

Things to check:

- Is Postgres actually running on the server machine?

- Is it accepting TCP/IP connections on port 5432? - Check
listen_addresses in postgresql.conf

- Is there a firewall somewhere between client and server?

- Can you connect manually to the server using psql?

Ray.


-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie



view thread (19+ messages)  latest in thread

Message-ID: <4F9E5536.7000805@iol.ie>
Permalink:  ../4F9E5536.7000805@iol.ie/
Also on:    postgresql.org/message-id/4F9E5536.7000805@iol.ie

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: rod@iol.ie, archanakknn@gmail.com
  Subject: Re: Cannot connect to remote postgres using php
  In-Reply-To: <4F9E5536.7000805@iol.ie>
  References: <CACa6=i3GUa7gi0S1p6XiJ0FfBpkEKfoKn2ziCdQAzQLgyGmhpw@mail.gmail.com> <4F9E5536.7000805@iol.ie>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox