Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 69CA39FA274 for ; Wed, 1 Nov 2006 18:58:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 28851-10-3 for ; Wed, 1 Nov 2006 18:58:21 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id 22F3D9FB549 for ; Wed, 1 Nov 2006 17:11:50 -0400 (AST) Received: by ug-out-1314.google.com with SMTP id 30so1608651ugc for ; Wed, 01 Nov 2006 13:11:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=LdhfPEF5EJ0TQnZDFnbfPiMZ9c6zLYOLFed1AO36W9+q/VZ/nuB0ReMmDyVeHObyTZlRURMvi4EoGxdPvQquTxSKn9183oiKgggszN1WeIre+2idMKcFo1mZxxGkBG1+9vqANYV5kLTUCFafw0CgDarZrZIVoPZm1z4jXohb/Go= Received: by 10.82.126.19 with SMTP id y19mr1677430buc; Wed, 01 Nov 2006 13:11:49 -0800 (PST) Received: by 10.82.173.11 with HTTP; Wed, 1 Nov 2006 13:11:48 -0800 (PST) Message-ID: <1d7288990611011311u6e8c17bbt49a5e67a45faeffb@mail.gmail.com> Date: Wed, 1 Nov 2006 16:11:48 -0500 From: Brew To: "Dirk Becker" Subject: Re: cant conect to dynamic host-URL Cc: pgsql-php@postgresql.org In-Reply-To: <4548E934.5090904@adocom.de> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_32433_7353282.1162415508772" References: <4548E934.5090904@adocom.de> X-Google-Sender-Auth: 7b9023c96fe0e9f8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.479 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200611/2 X-Sequence-Number: 3620 ------=_Part_32433_7353282.1162415508772 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_32433_7353282.1162415508772 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_32433_7353282.1162415508772--