pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan King <danking12@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Can't connect from computer on network.
Date: Tue, 19 Feb 2008 04:27:02 -0500
Message-ID: <e8af117a0802190127q43bed6fehe22e87c0d1eaa7e3@mail.gmail.com> (raw)

Hi list,

I am using postgresql 8.2 on Ubuntu Gutsy. I am attempting to connect to my
database on one computer from another computer on my network. I can connect
to the database if I have:

listen_addresses = '*'

in my postgresql.conf file. But I can't connect if I have:

listen_addresses = 'localhost, 192.168.2.102'

in my postgresql.conf file. The computer that is assigned 192.168.2.102 is
the computer I am attempting to connect from that works with the * but not
with an assigned IP address. I understand that having a * allows all
connections but I am attempting to restrict this so only a certain computer
can access the database.

Does anyone know why I can't connect to the database from another computer
when specifying the IP address in 'listen_addresses' and how to fix my
problem?

Thanks a lot for the help.

Dan

view thread (4+ messages)  latest in thread

Message-ID: <e8af117a0802190127q43bed6fehe22e87c0d1eaa7e3@mail.gmail.com>
Permalink:  ../e8af117a0802190127q43bed6fehe22e87c0d1eaa7e3@mail.gmail.com/
Also on:    postgresql.org/message-id/e8af117a0802190127q43bed6fehe22e87c0d1eaa7e3@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: danking12@gmail.com
  Subject: Re: Can't connect from computer on network.
  In-Reply-To: <e8af117a0802190127q43bed6fehe22e87c0d1eaa7e3@mail.gmail.com>

* 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