pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg Windows to PG FreeBSD
4+ messages / 2 participants
[nested] [flat]
* pg Windows to PG FreeBSD
@ 2010-04-23 20:05 herbey zepeda <zepedaherbey@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: herbey zepeda @ 2010-04-23 20:05 UTC (permalink / raw)
To: pgsql-admin
hi
I have one install of postgresql in Windows, and a second in FreeBSD. Both
are the 8.4 version
I am trying to connect from the windows install to the FreeBSD server
install
psql -h 10.10.90.125 -U myUser -d template1
and the result is:
"Could not connect to server connection refused....is the server running on
host .... and accepting tcp/ip connections on port 5432?"
I searched in severa places, one of them is:
http://www.postgresql.org/docs/8.3/static/server-start.html
http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html
http://www.postgresql.org/docs/8.4/static/runtime-config-connection.html
http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html
in addition to the manual,
I do not have the same problem when I try a Windows to Windows connection.
I already placed the "*" in the listen_addresses option and "host all all
10.10.90.0/24 trust".
I'm not sure what to do now, again, windows to windows there is no problem,
thanks
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg Windows to PG FreeBSD
@ 2010-04-23 20:11 Scott Marlowe <scott.marlowe@gmail.com>
parent: herbey zepeda <zepedaherbey@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: Scott Marlowe @ 2010-04-23 20:11 UTC (permalink / raw)
To: herbey zepeda <zepedaherbey@gmail.com>; +Cc: pgsql-admin
On Fri, Apr 23, 2010 at 2:05 PM, herbey zepeda <zepedaherbey@gmail.com> wrote:
> hi
>
> I have one install of postgresql in Windows, and a second in FreeBSD. Both
> are the 8.4 version
> I am trying to connect from the windows install to the FreeBSD server
> install
>
>
> psql -h 10.10.90.125 -U myUser -d template1
>
> and the result is:
>
>
> "Could not connect to server connection refused....is the server running on
> host .... and accepting tcp/ip connections on port 5432?"
So, the windows machine can't get to port 5432 on the bsd machine.
The problem can be anything from a firewall (exxternal) to the app not
running on the host machine.
Does that same string work on the bsd box?
> I searched in severa places, one of them is:
> http://www.postgresql.org/docs/8.3/static/server-start.html
> http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html
> http://www.postgresql.org/docs/8.4/static/runtime-config-connection.html
> http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html
> in addition to the manual,
>
> I do not have the same problem when I try a Windows to Windows connection.
Of course, the problem is likely that the bsd box isn't answering on
that port for whatever reason.
> I already placed the "*" in the listen_addresses option and "host all all
> 10.10.90.0/24 trust".
Where did you change this? On the bsd box or the windows box (should
be bsd) If on bsd did you then restart the server on bsd?
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg Windows to PG FreeBSD
@ 2010-04-24 02:30 herbey zepeda <zepedaherbey@gmail.com>
parent: Scott Marlowe <scott.marlowe@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: herbey zepeda @ 2010-04-24 02:30 UTC (permalink / raw)
To: Scott Marlowe <scott.marlowe@gmail.com>; +Cc: pgsql-admin
I appologize,
I did everything as stated in the manuals and more, but I did not remove the
comment character from the configuration file postgres.conf. The connection
from pg WIndows to pg Freebsd was succesful,
thanks for your reply
On Fri, Apr 23, 2010 at 4:11 PM, Scott Marlowe <scott.marlowe@gmail.com>wrote:
> On Fri, Apr 23, 2010 at 2:05 PM, herbey zepeda <zepedaherbey@gmail.com>
> wrote:
> > hi
> >
> > I have one install of postgresql in Windows, and a second in FreeBSD.
> Both
> > are the 8.4 version
> > I am trying to connect from the windows install to the FreeBSD server
> > install
> >
> >
> > psql -h 10.10.90.125 -U myUser -d template1
> >
> > and the result is:
> >
> >
> > "Could not connect to server connection refused....is the server running
> on
> > host .... and accepting tcp/ip connections on port 5432?"
>
> So, the windows machine can't get to port 5432 on the bsd machine.
> The problem can be anything from a firewall (exxternal) to the app not
> running on the host machine.
>
> Does that same string work on the bsd box?
>
> > I searched in severa places, one of them is:
> > http://www.postgresql.org/docs/8.3/static/server-start.html
> > http://www.postgresql.org/docs/8.2/static/auth-pg-hba-conf.html
> > http://www.postgresql.org/docs/8.4/static/runtime-config-connection.html
> >
> http://www.cyberciti.biz/tips/postgres-allow-remote-access-tcp-connection.html
> > in addition to the manual,
> >
> > I do not have the same problem when I try a Windows to Windows
> connection.
>
> Of course, the problem is likely that the bsd box isn't answering on
> that port for whatever reason.
>
> > I already placed the "*" in the listen_addresses option and "host all
> all
> > 10.10.90.0/24 trust".
>
> Where did you change this? On the bsd box or the windows box (should
> be bsd) If on bsd did you then restart the server on bsd?
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pg Windows to PG FreeBSD
@ 2010-04-24 03:48 Scott Marlowe <scott.marlowe@gmail.com>
parent: herbey zepeda <zepedaherbey@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Scott Marlowe @ 2010-04-24 03:48 UTC (permalink / raw)
To: herbey zepeda <zepedaherbey@gmail.com>; +Cc: pgsql-admin
On Fri, Apr 23, 2010 at 8:30 PM, herbey zepeda <zepedaherbey@gmail.com> wrote:
> I appologize,
>
> I did everything as stated in the manuals and more, but I did not remove the
> comment character from the configuration file postgres.conf. The connection
> from pg WIndows to pg Freebsd was succesful,
No need for an apology. You had a problem and came here for help.
That's what the list is for. Glad you got it figured out.
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-04-24 03:48 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-04-23 20:05 pg Windows to PG FreeBSD herbey zepeda <zepedaherbey@gmail.com>
2010-04-23 20:11 ` Scott Marlowe <scott.marlowe@gmail.com>
2010-04-24 02:30 ` herbey zepeda <zepedaherbey@gmail.com>
2010-04-24 03:48 ` Scott Marlowe <scott.marlowe@gmail.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox