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 4212E9DC851 for ; Fri, 27 Jan 2006 23:14:04 -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 60034-07 for ; Fri, 27 Jan 2006 23:14:08 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 44BC49DC84D for ; Fri, 27 Jan 2006 23:14:02 -0400 (AST) Received: from mail.utiba.com.au (eth2643.vic.adsl.internode.on.net [150.101.158.82]) by svr4.postgresql.org (Postfix) with ESMTP id A95025AF849 for ; Sat, 28 Jan 2006 03:14:06 +0000 (GMT) Received: from localhost (scan1.utiba.com.au [127.0.0.1]) by mail.utiba.com.au (Postfix) with ESMTP id 21DDE43EEE; Sat, 28 Jan 2006 14:14:01 +1100 (EST) Received: from mail.utiba.com.au ([127.0.0.1]) by localhost (scan1.utiba.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16527-01; Sat, 28 Jan 2006 14:13:57 +1100 (EST) Received: from mail1.utiba.com (ser1 [192.168.0.1]) by mail.utiba.com.au (Postfix) with ESMTP id 5716043EE9; Sat, 28 Jan 2006 14:13:57 +1100 (EST) Received: from rotate-the-shield-harmonics.utiba.com (localhost [127.0.0.1]) by mail1.utiba.com (Postfix) with ESMTP id 47B8113ECBB; Sat, 28 Jan 2006 14:13:55 +1100 (EST) From: Philip Yarra Organization: Utiba Pty Ltd To: pgsql-jdbc@postgresql.org Subject: Re: Postgres-JDBC question Date: Sat, 28 Jan 2006 14:13:54 +1100 User-Agent: KMail/1.7.2 Cc: "Sean" References: <20060127143144.55A805AF173@svr4.postgresql.org> In-Reply-To: <20060127143144.55A805AF173@svr4.postgresql.org> X-enigma: Naturally a smoked function is living MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200601281413.54351.philip@utiba.com> X-Utiba-MailScanner-Information: Please contact the Systems Administrator at Utiba for more information X-Utiba-MailScanner: Found to be clean Utiba-MailScanner-MCPCheck: X-MailScanner-From: philip@utiba.com X-Virus-Scanned: amavisd-new at utiba.com.au X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200601/129 X-Sequence-Number: 14580 On Sat, 28 Jan 2006 01:31 am, Sean wrote: > and can connect my app and the db when using localhost, but when I try to > connect via an ip address, it blows up telling me that the connection was > refused. I have set the postmaster to listen for TCP/IP connections, but > still does not work. Any suggestions? In postgresql.conf, the default config is to listen only on localhost IP address (probably listen_addresses will be set to default value and commented out). Change it so that is reads: listen_addresses = '*' and re-start the DB. As Mark mentioned, you may also want to review your pg_hba.conf file. Regards, Philip. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan ----------------- Utiba Pty Ltd This message has been scanned for viruses and dangerous content by Utiba mail server and is believed to be clean.