Re: PG 8.3.7. Windows 7. select inet_server_addr() returns ::1 - the loopback adrs.

From: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: PG 8.3.7. Windows 7. select inet_server_addr() returns ::1 - the loopback adrs.
Date: 2010-05-09 15:23:43
Message-ID: 20100509152343.GA4171@a-kretschmer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

In response to Abraham, Danny :
> The machine is on IPV4.
>
> How can I retrieve the real IP adrs?

kretschmer(at)tux:~$ psql -h localhost test
Password:
Timing is on.
psql (8.4.2)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.

test=# select inet_server_addr();
inet_server_addr
------------------
127.0.0.1
(1 row)

Time: 0.529 ms
test=*# \q
kretschmer(at)tux:~$ psql -h 10.0.0.102 test
Password:
Timing is on.
psql (8.4.2)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.

test=# select inet_server_addr();
inet_server_addr
------------------
10.0.0.102
(1 row)

Time: 0.500 ms

You can see the difference?

>
> Is 8.3.7 supported on Windows 7?

I think yes, but i'm not sure.

Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG: 0x31720C99, 1006 CCB4 A326 1D42 6431 2EB0 389D 1DC2 3172 0C99

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-05-09 15:47:36 Re: Sorting with materialized paths
Previous Message Abraham, Danny 2010-05-09 14:34:43 PG 8.3.7. Windows 7. select inet_server_addr() returns ::1 - the loopback adrs.