|
|||||||||||
|
Re: [JDBC] trying to connect to pg from within a local network
From: Albe Laurenz <laurenz.albe(at)wien.gv.at>
Date: Thu Jan 17 2008 - 10:46:26 EST
> Now, I am also getting "connection refused" messages even though I do Bad. pgAdmin3 runs on the server, right? So local connections are possible. Good to know. >> You should have the following in postgresql.conf: Good. >> Allowing certain client IP addresses is done in pg_hba.conf. That is not correct, you should have entries like this: host all all 127.0.0.1/32 md5 host all all 10.0.31.62/32 md5 host all all 0.0.0.0/0 reject But that should not lead to a "connection refused" message like you encounter, but to a "there is no pg_hba.conf entry" message. So that is not the immediate problem, though it will become later on. >> Try the following on the client: telnet 10.0.31.5 5432
That means that either
>> Try the following on the server: netstat -a OK, that's your PostgreSQL server listening. > > Is there a firewall involved? The firewall could also be somewhere between your client and the server. > //__ "netstat -a" on my client box That at least shows that it is possible to get TCP connections from your client to the server. At least on port 139. Could still be that a firewall blocks other ports. Ok, let's sum up:
That looks too me like a network/firewall problem. I know too little about networks, particularly on Windows, to tell you how to proceed. But to confirm my suspicion, there's a few things you can try:
If these two work, but "telnet 10.0.31.5 5432" from the client gives you a "connection refused", I don't know whom to blame but the network configuration.
Yours,
---------------------------(end of broadcast)---------------------------TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq Received on Thu Jan 17 10:50:44 2008 This archive was generated by hypermail 2.1.8 : Wed Jun 18 2008 - 23:43:02 EDT |
||||||||||
|
|||||||||||