Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id DB3EAB5DBD1 for ; Fri, 30 Sep 2011 10:46:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 77711-10 for ; Fri, 30 Sep 2011 13:46:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-yx0-f174.google.com (mail-yx0-f174.google.com [209.85.213.174]) by mail.postgresql.org (Postfix) with ESMTP id 8233DB5DBD6 for ; Fri, 30 Sep 2011 10:46:53 -0300 (ADT) Received: by yxl31 with SMTP id 31so1573927yxl.19 for ; Fri, 30 Sep 2011 06:46:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=k+KM1AMclDFVyRuJY6ZfnQ8gpHMsDaQDQJ9k5Sa5i9g=; b=J6CXQ4OlshLVorMyiJfNOPIdSSxgwmWNQnjooSY+NuiptbCVk4nVk/kJhXEL/mZUkX qTtQ5PnU5qJwBEcKJ5eKX6ZhLg7/gVsycS04CmSq1smVxt9HadIXQa19PKUD8dGAvN6x A6XF1wugFPXMN+Q309TRpw5ctlBhp+aUUDY2g= Received: by 10.151.114.19 with SMTP id r19mr7758300ybm.110.1317390414135; Fri, 30 Sep 2011 06:46:54 -0700 (PDT) Received: from tucker.localnet (c-24-17-164-54.hsd1.wa.comcast.net. [24.17.164.54]) by mx.google.com with ESMTPS id n8sm14188766and.1.2011.09.30.06.46.52 (version=SSLv3 cipher=OTHER); Fri, 30 Sep 2011 06:46:53 -0700 (PDT) From: Adrian Klaver To: pgsql-general@postgresql.org Subject: Re: Connection refused (0x0000274D/10061) Date: Fri, 30 Sep 2011 06:46:48 -0700 User-Agent: KMail/1.13.5 (Linux/2.6.32-33-generic; KDE/4.4.5; i686; ; ) Cc: "Pietro Laranci" References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201109300646.49250.adrian.klaver@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.889 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/1084 X-Sequence-Number: 180442 On Friday, September 30, 2011 3:17:51 am Pietro Laranci wrote: > Good morning to everybody > > I have a pg9 db to wich i can connect to by local but not from remote. In > the properties of the postgres db , the port is set to 5300 (not the > default 5432). I tried to connect in remote with pgadmin3 and quantum gis, > both give the error Connection refused (0x0000274D/10061). This is the > complet message in quantum gis (but is silimar in pgadmin3) > > "could not connect to server: Connection refused (0x0000274D/10061) > > Is the server running on host "95.110.201.74" and accepting > > TCP/IP connections on port 5300?" > > > > Whit both the programs installed on the same pc of the db, i can connect > without problem to the db. > > > > I already did these settings: > > > > - in postgresql.conf : listen_addresses = '*' and port = 5300 (in the place > of the default 5432) > > > > - in pg_hba.conf: > > host [dbname] all 0.0.0.0/0 md5 > > host [dbname] all 127.0.0.1/32 md5 > > > > - restarted postgres > > > > > > I also tried to substitute on the db properties "host=localhost" with > "host=95.110.201.74" > > > > On the machines are not active firewalls. > > > > Have you any clue of what's wrong? You did not say what OS you are running Postgres on, at a guess I am going to go with Windows. Are you sure the Windows firewall is not blocking port 5300? > > > > Grazie > > > > Thanks -- Adrian Klaver adrian.klaver@gmail.com