Re: Remote connection shows localhost databases

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Jeff Adams <Jeff(dot)Adams(at)noaa(dot)gov>, pgsql-general(at)postgresql(dot)org
Subject: Re: Remote connection shows localhost databases
Date: 2011-09-16 08:01:31
Message-ID: 1316160091.2939.2.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2011-09-16 at 08:14 +0100, Richard Huxton wrote:
> On 15/09/11 22:40, Guillaume Lelarge wrote:
> > On Thu, 2011-09-15 at 15:30 -0400, Jeff Adams wrote:
> >>
> >> When I try to connect to the remote machine, I enter \\<server>\<ip_address>
> >> into the host name field.
> >
> >The host field should contain the
> > socket complete path, or the host name, or the ip address.
>
> As Guillaume says - try just the IP address to start with. What you've
> been trying is sort-of a Windows networking path. Odd that pgAdmin
> doesn't give an error though.
>

Probably because the OP entered the Windows networking path in the Name
field, and didn't change the Host field. In which case, pgAdmin most
likely try to connect locally.

> If you were using psql you'd type something like:
> psql -h <ip-addr> -U <username> -d <dbname>
>
> Once you're happy the ip-address is working, try just the server-name by
> itself. You'll want the internet name for the machine which in theory
> can be different from the Windows network name, but usually is the same.
>

--
Guillaume
http://blog.guillaume.lelarge.info
http://www.dalibo.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2011-09-16 08:13:26 Re: Remote connection shows localhost databases
Previous Message Tom Lane 2011-09-16 07:52:24 Re: PostgreSQL 9.1.0 bug?