Re: psql connection via localhost or 127.0.0.1

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: John R Pierce <pierce(at)hogranch(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: psql connection via localhost or 127.0.0.1
Date: 2014-11-06 16:15:32
Message-ID: CA+bJJbyPSgmZB1rbAw+xphDhdjS9_ax1gcPtGGg-mvFfiVoALg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi John.

On Thu, Nov 6, 2014 at 4:47 PM, John R Pierce <pierce(at)hogranch(dot)com> wrote:

note that net mask? the loopback interface is the entire 127.0.0.0/8
> network you can't put a host at 127.0.1.x and expect it to work right.
>

You can, and it works, it just connects to yourself. Even without names, I
have used connections from 127.100.100.100:10000 to 127.111.111.111:111111
and 127.222.222.222:22222 to 127.233.233.233:23333 when testing some
network code, they all bind to loopback and a single packet trace is easier
to follow than just changing the ports.

Francisco Olarte.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2014-11-06 17:05:15 Re: phppgadmin
Previous Message Edoardo Panfili 2014-11-06 16:02:42 Re: psql connection via localhost or 127.0.0.1