Postgresql connect into windows server

Started by Yuriy Rusinovover 14 years ago5 messagesgeneral
Jump to latest
#1Yuriy Rusinov
yrusinov@gmail.com

Hello, All !

I have 2 machines with Gentoo Linux its ip is 192.168.17.109 and
Windows XP ip is 192.168.17.124
Postgresql 9.0.1 was installed on both machines. If I connect from
Windows machine onto Linux machine all works fine. pg_hba.conf on
linux machine is
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
host all all 192.168.17.1/24 trust

But if I connect from linux machine onto postgresql windows I receive
error message
Connection timed out.
Is the server running on host "192.168.17.124" and accepting TCP/IP
connections on port 5432?"
Its pg_hba.conf is
host all all 127.0.0.1/32 md5
host all all 192.168.17.109/32 trust
host all all 192.168.17.1/24 trust
postgresql.conf is

listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5432 # (change requires restart)
max_connections = 100

But pg_admin on windows successfully works on both servers.
Any ideas ?

Thanks in advance.
--
Best regards,
Sincerely yours,
Yuriy Rusinov.

#2John R Pierce
pierce@hogranch.com
In reply to: Yuriy Rusinov (#1)
Re: Postgresql connect into windows server

On 12/13/11 9:27 PM, Yuriy Rusinov wrote:

But pg_admin on windows successfully works on both servers.
Any ideas ?

is a windows firewall blocking incoming connections on port 5432/tcp ?

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

#3Yuriy Rusinov
yrusinov@gmail.com
In reply to: John R Pierce (#2)
Re: Postgresql connect into windows server

Hello !

But pg_admin on windows successfully works on both servers.
Any ideas ?

is a windows firewall blocking incoming connections on port 5432/tcp ?

Possible yes, but which way I have to verify it ?

--
Best regards,
Sincerely yours,
Yuriy Rusinov.

#4David G. Johnston
david.g.johnston@gmail.com
In reply to: Yuriy Rusinov (#3)
Re: Postgresql connect into windows server

On Dec 14, 2011, at 0:40, Yuriy Rusinov <yrusinov@gmail.com> wrote:

Hello !

But pg_admin on windows successfully works on both servers.
Any ideas ?

is a windows firewall blocking incoming connections on port 5432/tcp ?

Possible yes, but which way I have to verify it ?

Turn off the firewall and see if it works...

#5Yuriy Rusinov
yrusinov@gmail.com
In reply to: David G. Johnston (#4)
Re: Postgresql connect into windows server

Hello, All !

But pg_admin on windows successfully works on both servers.
Any ideas ?

is a windows firewall blocking incoming connections on port 5432/tcp ?

Possible yes, but which way I have to verify it ?

When I add rule for 5432/tcp port, all works fine.
Thanks a lot.

--
Best regards,
Sincerely yours,
Yuriy Rusinov.