X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id E05E09DCC24 for ; Wed, 1 Feb 2006 05:01:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96172-08 for ; Wed, 1 Feb 2006 05:01:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from guard.bercut.ru (guard.bercut.ru [195.144.243.254]) by postgresql.org (Postfix) with ESMTP id 280D89DCBA3 for ; Wed, 1 Feb 2006 05:01:26 -0400 (AST) Received: from guard.bercut.ru (root@localhost) by guard.bercut.ru (8.13.3/8.13.3) with SMTP id k1191SK3090564 for ; Wed, 1 Feb 2006 12:01:28 +0300 (MSK) (envelope-from Andrey.Myatluk@bercut.ru) Received: from master.office.bercut.ru (master.office.bercut.ru [192.168.5.12]) by guard.bercut.ru (8.13.4/8.13.1) with ESMTP id k1191Ss7090559 for ; Wed, 1 Feb 2006 12:01:28 +0300 (MSK) (envelope-from Andrey.Myatluk@bercut.ru) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Re: Postgres-JDBC question Date: Wed, 1 Feb 2006 12:01:27 +0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JDBC] Postgres-JDBC question Thread-Index: AcYlgt8Mldh8YeNJS7iT0Ktm8pY9tgBisy6A From: "Myatluk Andrey" To: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by guard.bercut.ru id k1191Ss7090559 X-Anti-Virus: Kaspersky Anti-Virus for MailServers 5.5.2/RELEASE, bases: 01022006 #174246, status: clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.287 required=5 tests=[AWL=0.287] X-Spam-Score: 0.287 X-Spam-Level: X-Archive-Number: 200602/3 X-Sequence-Number: 14600 Guillaume, On my host if I run netstat I see the following: tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 5557/postmaster tcp 0 0 :::5432 :::* LISTEN 5557/postmaster Do those mean that my database must be accessible from the outside? I have access from localhost processes, but my attempts to connect to the database with pgAdmin failed. Andrey -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of Guillaume Cottenceau Sent: Monday, January 30, 2006 12:52 PM To: Sean; pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Postgres-JDBC question Mark Lewis writes: > This usually means that you have allowed TCP/IP connections in > postgresql.conf, but haven't added a rule allowing remote access in > pg_hba.conf for anything other than localhost. Sean - on Linux, you can check this with the following command: [root@meuh ~] netstat -ltpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 3310/postmaster ^^^ my postgres is listening on all addresses [...] tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3259/master ^^^ my postfix is listening on localhost only -- Guillaume Cottenceau ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq