Re: Problem to connect from host via JDBC ...

From: "Nick Fankhauser" <nickf(at)ontko(dot)com>
To: <tsmets(at)brutele(dot)be>, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql jdbc" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Problem to connect from host via JDBC ...
Date: 2002-03-05 19:02:38
Message-ID: NEBBLAAHGLEEPCGOBHDGOEOEEHAA.nickf@ontko.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Thomas-

The port is different from http. If you have psql installed on you machine,
a simple test would be to type:

psql -h<hostname> <database name>

If you can connect and run a few quesries, then you know that the host
machine is accepting connections.

-Nick

> -----Original Message-----
> From: pgsql-jdbc-owner(at)postgresql(dot)org
> [mailto:pgsql-jdbc-owner(at)postgresql(dot)org]On Behalf Of tsmets(at)brutele(dot)be
> Sent: Tuesday, March 05, 2002 1:43 PM
> To: Tom Lane; pgsql jdbc
> Subject: Re: [JDBC] Problem to connect from host via JDBC ...
>
>
>
>
> AFAIK
> there's no such network policy as I was able to connect to the machine via
> HTTP when apache was turned on
>
> Thomas,
>
>
> --
> Thomas SMETS
> rue J. Wytsmanstraat 62
> 1050 Bruxelles
> yahoo-id : smetsthomas
> ----- Original Message -----
> From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> To: <tsmets(at)brutele(dot)be>
> Cc: "pgsql jdbc" <pgsql-jdbc(at)postgresql(dot)org>
> Sent: 05 March, 2002 5:00 PM
> Subject: Re: [JDBC] Problem to connect from host via JDBC ...
>
>
> > <tsmets(at)brutele(dot)be> writes:
> > > Trying to connect from another machine via JDBC gives the following
> error :
> > > "1109 [main] WARN org.test.JDBCPostgres.TestJDBCPostgres - Message :
> > > Connection refused.
> >
> > "Connection refused" suggests that the server machine's kernel is
> > rejecting the connection before it ever gets to the postmaster. Check
> > to make sure you have the right hostname and port number specified.
> > Another possibility is a packet-filtering issue (though those usually
> > result in no response, rather than a connection-refused response).
> >
> > regards, tom lane
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: you can get off all lists at once with the unregister command
> > (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
> >
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2002-03-05 19:10:34 Re: Problem to connect from host via JDBC ...
Previous Message tsmets 2002-03-05 18:42:47 Re: Problem to connect from host via JDBC ...