X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 402749FA357 for ; Mon, 3 Jul 2006 10:09:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 90278-07 for ; Mon, 3 Jul 2006 10:09:48 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web31814.mail.mud.yahoo.com (web31814.mail.mud.yahoo.com [68.142.206.167]) by postgresql.org (Postfix) with SMTP id 240D49FA232 for ; Mon, 3 Jul 2006 10:09:47 -0300 (ADT) Received: (qmail 97241 invoked by uid 60001); 3 Jul 2006 13:09:46 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=OntOIqMXNj+lDpV5betraUOMbsvBMADq+Z4LAGUUHHWdmtCBcXD+4X3rMuvbsFDTQGGZLiWdhfsZsG4swdZHKKwi0rdTq0d8lchPMjEhsBHPdE6RPgaW5uBSpyQLUUOutzbyL+3fNeNEEqebnAeuVOmdg15lPrc5Faz+GtYADnA= ; Message-ID: <20060703130946.97239.qmail@web31814.mail.mud.yahoo.com> Received: from [24.54.196.198] by web31814.mail.mud.yahoo.com via HTTP; Mon, 03 Jul 2006 06:09:46 PDT Date: Mon, 3 Jul 2006 06:09:46 -0700 (PDT) From: Richard Broersma Jr Subject: Re: hi i need to connect database from my system to another To: "Penchalaiah P." , pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/29 X-Sequence-Number: 25603 > I am using windows xp operating system... > I want to know how to connect remote postgresql from my system.. I need > brief description from beginning.. > Now I am using pg_HBF conf file to connect remote postgresql in that I > am giving host name , ip-address,mask and trust... but it is showing > error like > > Could not connect to server: connection refused(0x0000274d\10061) > Is the server running on host 127.0.0.1 and accepting TCP\IP connection > on port 5432 ? Actually, your PostgreSQL server is running on the IP address that is assigned to that computer. The 127.0.0.1 in the pg_hba.conf file is the initial accepted client IP address that your postgresql server will accepted connections from. 127.0.0.1 is basically means localhost. So, your pg_hba.conf file is initial configured to only allow client connections from itself. So in this case, if you want to connect from an IP address from a different computer, you will need to specify that ip address in your pg_hba.conf file as well as the permissions. But just to get started, you could try editing a line in your pg_hba.conf to this: #host all all 127.0.0.1/32 md5 host all all /24 trust host all all 127.0.0.1/32 trust To understand all of this, you will need to read the introduction in your pg_hba.conf file. Also, keep in mind that the above change is basically an "open door" to everything in your DB server. So after you've had a change to get familiar with everything, you will want to tighten up on how,what, and how access is granted to you system. "Last but not least", you will need to restart your postgresql service so these changes will take effect. This should get you connected. Regards, Richard Broersma Jr.