From: | "Manikandan C" <manikandanc(at)pervasive-postgres(dot)com> |
---|---|
To: | "Todd Rockhold" <toduro(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Configure foreign host for PostgreSQL 8.0.3 on WindowsXP |
Date: | 2005-09-29 04:46:52 |
Message-ID: | B4AF8C04F762D246A1E38EC5DFAEFC0B30508A@blrmail2.aus.pervasive.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Try disabling firewall. Because it may prevent any connections to your machine.
Regards,
Mani
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org]On Behalf Of Todd Rockhold
Sent: Wednesday, September 28, 2005 1:03 PM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Configure foreign host for PostgreSQL 8.0.3 on WindowsXP
Installed PostgreSQL 8.0.3 on WindowsXP. Have not been able to configure so that a client program running on a different WindowsXP box can connect to the PostgreSQL database.
As I understand the documentation, at least one of the following configurations should work, but none do. What have I done wrong and how can I configure so that a connection can be successfully made?
1) The postgresql.conf file has (with everything else being the installation default values):
listen_addresses = '*'
2) None of the following configurations of the pg_hba.conf file worked (the program runs on 192.168.2.120):
# IPv4 local connections:
#host all all 127.0.0.1/32 md5
host all all 192.168.2.120/24 md5
# IPv4 local connections:
#host all all 127.0.0.1/32 md5
host all all 192.168.2.120 255.255.255.255 md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 192.168.2.120/24 md5
# IPv4 local connections:
host all all 127.0.0.1/32 md5
host all all 192.168.2.120 255.255.255.255 md5
I have a Symantec personal firewall installed which I turned off during testing.
The program runs fine on localhost.
Am using the Npgsql .NET library. The Npgsql.Npgsql.Open() call throws an exception, the error text of which is "System.Net.Sockets.SocketException: NO connection could be made because the target machine actively refused it."
From | Date | Subject | |
---|---|---|---|
Next Message | Claus Scherschel | 2005-09-29 07:52:23 | Postgres/Win32- Upgrade from 8.0.1 to 8.0.3 fails |
Previous Message | Tom Lane | 2005-09-29 02:10:45 | Re: Postgresql 8.0.3, symbolic link to /var/lib/pgsql/data/base |