pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Purusothaman A <Purusothaman.A@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Is the server running on host "192.168.2.111" and accepting TCP/IP conn
Date: Fri, 25 Aug 2006 09:48:55 -0400
Message-ID: <23224.1156513735@sss.pgh.pa.us> (raw)
In-Reply-To: <5982235.post@talk.nabble.com>
References: <5982235.post@talk.nabble.com>

Purusothaman A <Purusothaman.A@gmail.com> writes:
> My system IP is 192.168.2.111, and client machine IP is 192.168.2.89.

> I can connect to the PostgreSQL server with " psql -Uroot -h192.168.2.111"
> from same system(192.168.2.111)

> If I give the above command from 192.168.2.89, results

> E:\Program Files\PostgreSQL\8.1\bin>psql -Uroot - h192.168.2.111
> psql: could not connect to server: Connection refused (0x0000274D/10061)
>         Is the server running on host "192.168.2.111" and accepting
>         TCP/IP connections on port 5432?


I'm betting that you have some firewall software on that server that
needs to be persuaded to let through nonlocal connections to port 5432.

> I have read that we have to specify option "-i" while starting postmaster to
> accept TCP/IP connections from other systems. (Is it right?)

No, that's been superseded by listen_addresses, which you appear to have
set correctly already.  (If you modified that entry, you did restart the
postmaster afterwards, right?)

			regards, tom lane



view thread (2+ messages)

Message-ID: <23224.1156513735@sss.pgh.pa.us>
Permalink:  ../23224.1156513735@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23224.1156513735@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, Purusothaman.A@gmail.com
  Subject: Re: Is the server running on host "192.168.2.111" and accepting TCP/IP conn
  In-Reply-To: <23224.1156513735@sss.pgh.pa.us>
  References: <5982235.post@talk.nabble.com> <23224.1156513735@sss.pgh.pa.us>

* 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