Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4C0599FA49F for ; Wed, 21 Feb 2007 03:39:44 -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 41460-08 for ; Wed, 21 Feb 2007 03:39:41 -0400 (AST) X-Greylist: whitelisted by SQLgrey-1.7.4 Received: from fallbackmx01.syd.optusnet.com.au (fallbackmx01.syd.optusnet.com.au [211.29.132.93]) by postgresql.org (Postfix) with ESMTP id AA5C89FA434 for ; Wed, 21 Feb 2007 03:39:39 -0400 (AST) Received: from mail24.syd.optusnet.com.au (mail24.syd.optusnet.com.au [211.29.133.165]) by fallbackmx01.syd.optusnet.com.au (8.12.11.20060308/8.12.11) with ESMTP id l1L7daUQ010633 for ; Wed, 21 Feb 2007 18:39:37 +1100 Received: from [58.108.16.100] (d58-108-16-100.dsl.vic.optusnet.com.au [58.108.16.100]) (authenticated sender plengada) by mail24.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l1L7dRG3023220; Wed, 21 Feb 2007 18:39:30 +1100 Message-ID: <45DBF75D.7040808@autoledgers.com.au> Date: Wed, 21 Feb 2007 16:40:13 +0900 From: Paul Lambert User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Ludek Finstrle CC: pgsql-odbc@postgresql.org Subject: Re: Unable to connect on W2K References: <45DBBE4C.2000404@autoledgers.com.au> <20070221070455.GA14843@soptik.pzkagis.cz> In-Reply-To: <20070221070455.GA14843@soptik.pzkagis.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/34 X-Sequence-Number: 8658 Ludek Finstrle wrote: >> 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > > Given that I am doing this testing from the server itself, yes it knows how to resolve its own name - evidenced by the initial error message showing the IP address. I'll try changing the IP to 127... when I'm back in work tomorrow. I'm at home now unfortunately so I can't try your suggestion at the moment. Will let you know how it goes. Cheers, Paul. -- Paul Lambert Database Administrator AutoLedgers