X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ADF2DD912E for ; Thu, 29 Sep 2005 01:46:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68863-01 for ; Thu, 29 Sep 2005 04:45:57 +0000 (GMT) Received: from ausimss.pervasive.com (ausimss.pervasive.com [66.45.103.246]) by svr1.postgresql.org (Postfix) with ESMTP id 1C5A8D9B93 for ; Thu, 29 Sep 2005 01:45:55 -0300 (ADT) Received: from ausbayes2.aus.pervasive.com ([172.16.8.6]) by ausimss.pervasive.com with InterScan Messaging Security Suite; Wed, 28 Sep 2005 23:46:30 -0500 Received: from blrmail2.aus.pervasive.com ([10.3.16.65]) by ausbayes2.aus.pervasive.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 28 Sep 2005 23:46:29 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message Subject: Re: Configure foreign host for PostgreSQL 8.0.3 on WindowsXP Date: Thu, 29 Sep 2005 10:16:52 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5C4B0.BE8ADBC5" Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Configure foreign host for PostgreSQL 8.0.3 on WindowsXP Thread-Index: AcXEAULO6641ziDXQjeY3euIVHDQ7wAr1yFg From: "Manikandan C" To: "Todd Rockhold" , X-OriginalArrivalTime: 29 Sep 2005 04:46:30.0231 (UTC) FILETIME=[C241D670:01C5C4B0] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.054 required=5 tests=[AWL=-0.054, HTML_60_70=0.027, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.08] X-Spam-Level: X-Archive-Number: 200509/326 X-Sequence-Number: 19063 This is a multi-part message in MIME format. ------_=_NextPart_001_01C5C4B0.BE8ADBC5 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Try disabling firewall. Because it may prevent any connections to your = machine. =20 Regards, Mani -----Original Message----- From: pgsql-admin-owner@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Todd Rockhold Sent: Wednesday, September 28, 2005 1:03 PM To: pgsql-admin@postgresql.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.=20 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):=20 listen_addresses =3D '*' 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.=20 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." ------_=_NextPart_001_01C5C4B0.BE8ADBC5 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Try=20 disabling firewall. Because it may prevent any connections to your=20 machine.
 
Regards,
Mani
-----Original Message-----
From:=20 pgsql-admin-owner@postgresql.org=20 [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Todd=20 Rockhold
Sent: Wednesday, September 28, 2005 1:03 = PM
To:=20 pgsql-admin@postgresql.org
Subject: [ADMIN] Configure = foreign host=20 for PostgreSQL 8.0.3 on WindowsXP

Installed = PostgreSQL=20 8.0.3 on WindowsXP.  Have not been able to configure so that a = client=20 program running on a different WindowsXP box can connect to the = PostgreSQL=20 database.

As I understand the documentation, at least one of = the=20 following configurations should work, but none do.  What have I = done=20 wrong and how can I configure so that a connection can be successfully = made?


1) The postgresql.conf file has (with everything else = being=20 the installation default values):

listen_addresses =3D = '*'

2)=20 None of the following configurations of the pg_hba.conf file worked = (the=20 program runs on 192.168.2.120):

#=20 IPv4 local connections:
#host   =20 all        =20 all         127.0.0.1/32    &nbs= p;    =20 md5
host   =20 all         = all   =20         192.168.2.120/24   &n= bsp;  =20 md5

# IPv4 local connections:
#host   =20 all        =20 all         127.0.0.1/32    &nbs= p;    =20 md5
host   =20 all         = all   =20         192.168.2.120 255.255.255.255=20       md5

# IPv4 local=20 connections:
host   =20 all        =20 all         127.0.0.1/32    &nbs= p;    =20 md5
host   =20 all         = all   =20      192.168.2.120/24   &n= bsp;  =20 md5

# IPv4 local connections:
host   =20 all        =20 all         127.0.0.1/32    &nbs= p;    =20 md5
host   =20 all         = all   =20         192.168.2.120 255.255.255.255=20       md5

I have a Symantec personal = firewall=20 installed which I turned off during testing.

The program runs = fine on=20 localhost.

Am using the Npgsql .NET library.  The=20 Npgsql.Npgsql.Open() call throws an exception, the error text of which = is=20 "System.Net.Sockets.SocketException: NO connection could be made = because the=20 target machine actively refused = it."

------_=_NextPart_001_01C5C4B0.BE8ADBC5--