Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 482999FB49B for ; Mon, 9 Oct 2006 06:29:51 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 74320-07 for ; Mon, 9 Oct 2006 09:29:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 30C599FB490 for ; Mon, 9 Oct 2006 06:29:31 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from consult-it.biz (83-65-166-243.work.xdsl-line.inode.at [83.65.166.243]) by svr4.postgresql.org (Postfix) with ESMTP id 1AD7C5AF04F for ; Mon, 9 Oct 2006 09:29:29 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by consult-it.biz (Postfix) with ESMTP id ABA066B8D7; Mon, 9 Oct 2006 11:20:48 +0200 (CEST) Received: from consult-it.biz ([127.0.0.1]) by localhost (chef [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32531-02; Mon, 9 Oct 2006 11:20:23 +0200 (CEST) Received: from webmail.consult-it.biz (localhost.localdomain [127.0.0.1]) by consult-it.biz (Postfix) with ESMTP id F23776B8D6; Mon, 9 Oct 2006 11:20:22 +0200 (CEST) Received: from 83.65.166.242 (SquirrelMail authenticated user ciwos) by webmail.consult-it.biz with HTTP; Mon, 9 Oct 2006 11:20:22 +0200 (CEST) Message-ID: <1038.83.65.166.242.1160385622.squirrel@webmail.consult-it.biz> In-Reply-To: <4529F274.7030104@informatyka.gdansk.pl> References: <32968.62.178.153.212.1160199318.squirrel@webmail.consult-it.biz> <4529F274.7030104@informatyka.gdansk.pl> Date: Mon, 9 Oct 2006 11:20:22 +0200 (CEST) Subject: Re: Cant connect to psql on winxp From: "Wolfgang Schedl" To: "Adam Radlowski" Cc: pgsql-admin@postgresql.org Reply-To: wosforum@consult-it.biz User-Agent: SquirrelMail/1.4.6-rc1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at consult-it.biz X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.305 tagged_above=0 required=5 tests=BIZ_TLD, FORGED_RCVD_HELO, HOT_NASTY X-Spam-Level: ** X-Archive-Number: 200610/54 X-Sequence-Number: 23357 Thanks, point 3 did the trick! Seems, I have to read the documentation better.... Sorry for the simple question and thanks again Wolfgang > Four thigs: > 1. Do You have in "postgresql.conf" in section "CONNECION AND > AUTENTICATION" active opction (default is 'localhost'): > listen_adress='*' (if You want to be more safe, read PDF with PostgreSQL > doc chapter 17) > 2. You're telneting 83.xxx.xxx.xxx, but You have 62.xxx.xxx.xxx in > pg_hba.conf > 3. Try using mode "open for all": 0.0.0.0/0. If You have this mode and > "listen_adress='*'" You have fully open PostgreSQL. If You have still > problems, this should be TCP/IP connection problem. If You want to be > more safe: if You are using 24 mode adress, so in pg_hba.conf You will > have: xxx.xxx.xxx.0/24, 32 mode: xxx.xxx.xxx.xxx/32 for more read PDF > with PostgreSQL doc (chapter 20) > 4. Do You have really telnet service started on 5432 port ? I suggest to > stop this service, when You are using other service on tis same port. > > With greetings > Adam > > Wolfgang Schedl wrote: > >>Hello, >> >>I have a postgresql-server 8.1 running on a winxp-server. I want to >>connect with my ubuntu at home (in the end, it should work with a >>ASP.net-program) to the db, but it fails to connect. The port is open - I >>can prove this with a working telnet connection. >>----- >>user@pc:~$ telnet 83.xxx.xxx.xxx 5432 >>Trying 83.xxx.xxx.xxx... >>Connected to 83.xxx.xxx.xxx. >>Escape character is '^]'. >>----- >>The problem is, that the psql-connection fails. >>----- >>----- >>My admin-tool for the pqsql-Server is pgadminIII. I tried to change the >>pg_hba.conf and added a line with my IP-adress with the pgadminIII. The >>line is correct in the pg_hba.conf. >>----- >>host all all 62.xxx.xxx.xxx md5 >>----- >>In the config-file everything looks fine, but when I start >>pgadminIII->Tools->Server Configuration->pg_hba.conf, it still doesn't >>show this line. Could this be the problem or is it just a >>pgadminIII-WinXP-bug? >> >>Any ideas, how I could solve the problem? >> >>Thanks >> >>Mit freundlichen Grüssen / Best Regards >>--------------------------------------- >>Wolfgang Schedl >> >> >>---------------------------(end of broadcast)--------------------------- >>TIP 2: Don't 'kill -9' the postmaster >> >> >> >> > > > Mit freundlichen Grüssen / Best Regards --------------------------------------- Wolfgang Schedl Mobil +43/699/143 695 77 Fax +43/699/443 695 77 mailto:wolfgang.schedl@consult-it.biz --------------------------------------- CONSULT|IT GmbH A-7311 Neckenmarkt www.consult-it.biz ---------------------------------------