Re: Can't connect from computer on network. - Mailing list pgsql-admin
From | nalini |
---|---|
Subject | Re: Can't connect from computer on network. |
Date | |
Msg-id | 69994452a8d5057.47baee51@nic.in Whole thread Raw |
In response to | Re: Can't connect from computer on network. ("Mehlape, Makgati" <MMehlape1@fnb.co.za>) |
Responses |
Re: Can't connect from computer on network.
("Mehlape, Makgati" <MMehlape1@fnb.co.za>)
|
List | pgsql-admin |
If you wish to limit access to certain IPs do it in pg_hba.conf.
----- Original Message -----
From: "Mehlape, Makgati" <MMehlape1@fnb.co.za>
Date: Tuesday, February 19, 2008 3:12 pm
Subject: Re: [ADMIN] Can't connect from computer on network.
To: Dan King <danking12@gmail.com>, pgsql-admin@postgresql.org
>
Hi. I think setting Listen_address to *, does In order to apply control over what e.g # TYPE DATABASE USER Host <DBname> DKing Make sure you restart your PostgreSQL Hope this helps. Makgati. From: Hi list, To read FirstRand If you are unable to
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> not necessary allows all connections but allows your PostgreSQL server to
> support TCP/IP connections. So, leave it as it is.
>
>
>
>
> machine IP addresses should connect remotely to your server; specify the IP
> addresses in the pg_hba.conf file.
>
>
>
>
>
>
>
>
> CIDR-ADDRESS METHOD
>
>
>
>
> 192.168.2.102 <Specifies user Authentication>
>
>
>
>
> serve after performing the above.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Dan King
>
> Sent: Tuesday, February 19, 2008
> 11:27 AM
>
> To: pgsql-admin@postgresql.org
>
> Subject: [ADMIN] Can't connect
> from computer on network.
>
>
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
> Bank's Disclaimer for this email click on the following address or copy into
> your Internet browser:
> https://www.fnb.co.za/disclaimer.html
>
>
> access the Disclaimer, send a blank e-mail to firstrandbankdisclaimer@fnb.co.za
> and we will send you a copy of the Disclaimer.
>
>
>
>
>
Nalini S. Nautiyal
System Software Division
NIC HQ
New Delhi
Ph 24360324,24305121,24305131
pgsql-admin by date: