From: Brew <brew@theMode.com>
To: Dirk Becker <becker@adocom.de>
Cc: pgsql-php@postgresql.org
Subject: Re: cant conect to dynamic host-URL
Date: Wed, 1 Nov 2006 16:11:48 -0500
Message-ID: <1d7288990611011311u6e8c17bbt49a5e67a45faeffb@mail.gmail.com> (raw)
In-Reply-To: <4548E934.5090904@adocom.de>
References: <4548E934.5090904@adocom.de>
Dirk......
Hi there, ive got a dynamic URL like myname.dyndns.org which links to my
> server
> where my postgres database runs. The Problem is that the Connection
> fails with error:
> "Warning: pg_connect(): Unable to connect to PostgreSQL server: unknown
> host name: adocom.dyndns.org"
>
> Now, if i ping my dynamic address and use the resulting IP for the
> Connection all works fine.
Are you running php on one machine and postgresql on a different machine?
If so, maybe the dynamic address redirection service doesn't handle port
5432. Web servers typically use port 80.
I don't know where my i did something wrong, i use an Java-Applet which
> connects also with the dynamic Address and works fine too. :(
Does it connect with postgresql, or something else on the machine using a
different port?
I think you can use telnet (or ssh?) to manually connect to any port number
of a host and see how (and if) the machine responds and get a better idea of
what's going on.
brew
--
Strange Brew (brew@theMode.com)
Check out my Stock Option website http://www.callpix.com
and my Musicians Free Classified http://www.TheMode.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: brew@theMode.com, becker@adocom.de
Subject: Re: cant conect to dynamic host-URL
In-Reply-To: <1d7288990611011311u6e8c17bbt49a5e67a45faeffb@mail.gmail.com>
References: <4548E934.5090904@adocom.de> <1d7288990611011311u6e8c17bbt49a5e67a45faeffb@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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