Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 082079FA41D for ; Wed, 21 Feb 2007 03:05:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 40877-01 for ; Wed, 21 Feb 2007 03:05:12 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 451F69FA418 for ; Wed, 21 Feb 2007 03:05:11 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id l1L74uks015164; Wed, 21 Feb 2007 08:04:56 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id l1L74tWO015163; Wed, 21 Feb 2007 08:04:55 +0100 Date: Wed, 21 Feb 2007 08:04:55 +0100 From: Ludek Finstrle To: Paul Lambert Cc: pgsql-odbc@postgresql.org Subject: Re: Unable to connect on W2K Message-ID: <20070221070455.GA14843@soptik.pzkagis.cz> References: <45DBBE4C.2000404@autoledgers.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DBBE4C.2000404@autoledgers.com.au> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.90/2614/Tue Feb 20 19:53:11 2007 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.136 tagged_above=0 required=5 tests=BAYES_50, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200702/33 X-Sequence-Number: 8657 > When I set up a System DSN and try to 'test' the connection, it returns > "Could not connect to the server; > No connection could be made because the target machine refused it. > [172.17.152.207:5432]" > > My pg_hba.conf file looks like this: > host all all 127.0.0.1/32 password > host all all 172.0.0.0/8 password > > DSN info: > DSN='AutoDRS',server='FOOTPRINTS',port='5432',dbase='AutoDRS',user='AutoDRS',passwd='xxxxx' Hello server='FOOTPRINTS' - are you sure you can reach you server with this name? What do you get when you type 'nslookup FOOTPRINTS' in cmd.exe? Could you try change the server to 127.0.0.1? Does this work (?): psql.exe -h FOOTPRINTS -p 5432 -U AutoDRS AutoDRS Regards, Luf