Re: psql connection via localhost or 127.0.0.1 - Mailing list pgsql-general

From Francisco Olarte
Subject Re: psql connection via localhost or 127.0.0.1
Date
Msg-id CA+bJJbyPSgmZB1rbAw+xphDhdjS9_ax1gcPtGGg-mvFfiVoALg@mail.gmail.com
Whole thread Raw
In response to Re: psql connection via localhost or 127.0.0.1  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
Hi John.

On Thu, Nov 6, 2014 at 4:47 PM, John R Pierce <pierce@hogranch.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.

pgsql-general by date:

Previous
From: Edoardo Panfili
Date:
Subject: Re: psql connection via localhost or 127.0.0.1
Next
From: Ramesh T
Date:
Subject: Re: phppgadmin