Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 641A5D32489 for ; Mon, 30 Apr 2012 13:08:46 -0300 (ADT) Received: from moutng.kundenserver.de ([212.227.17.8]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SOt9W-00084W-Ew for pgsql-php@postgresql.org; Mon, 30 Apr 2012 16:08:45 +0000 Received: from [192.168.48.4] (dslb-088-073-046-184.pools.arcor-ip.net [88.73.46.184]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0MaKMq-1SeLbB2l2W-00JtcN; Mon, 30 Apr 2012 18:08:29 +0200 Message-ID: <4F9EB8FD.6010601@is-buchholz.com> Date: Mon, 30 Apr 2012 18:08:29 +0200 From: Sven Marcel Buchholz User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:11.0) Gecko/20120313 Thunderbird/11.0 MIME-Version: 1.0 To: pgsql-php@postgresql.org Subject: Re: Cannot connect to remote postgres using php References: <4F9E5536.7000805@iol.ie> <160199AAABF9415FB10CB518309EC4F2@toshiba> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:BJfvZACu/Ri96H+pN/AepZPZOmQRfPjXMVVgJw0pq8+ Nv2rHVq+StsjKdEo8Zr+ksUIFS0XKRZFttlunSHxiKIuLBmKFV QG5oLFDGdV1Fa7v9AWXqkp7KUTZGg6ki38lq36ZAaK5811YEwN ZnzavY/384FFgNO/2EFn/fhcMkPl11DpnKd4oEEGYg6uS6FclX 4xZTWpIhisExFmy6Yp9anwkbbTxuZLtYInq0LMNF1n/veV8AB7 N8SIU0HRPnpuOtnmwysoJK/3QOrxLL/SSC6FaP3cMZZnuOhBYr PO1oFiBq9NOOWQGu1Kb92k2Tj2BinvYubD4GSxLZHkL56bZHli 33k49EFekmFXFQRc26vM= X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/14 X-Sequence-Number: 4233 On 30.04.12 17:57, Archana K N wrote: > My postgres server is listening to same port . I tried changing both > but same error is showing. > > I restarted the servers after changing the conf files. pgadmin3 is > running on both servers and i can connect them remotely. I am able to > connect to local host using the php code. > > I think i have changed the files correctly , some antivirus softwares > are running in the system i dont know whether that causes the problem. > > > -- > ------------------- > regards > archana > -------------------- Hallo, did yours server listens on other addresses than localhost (I mean the parameter listen_addresses in your postgresql.conf)? Kind regards Sven