Operating System - HP-UX
1831406 Members
3651 Online
110025 Solutions
New Discussion

what is localhost entry in /etc/hosts

 
SOLVED
Go to solution
Scott_20
Occasional Advisor

what is localhost entry in /etc/hosts

Hello,
Can someone explain what this means:

127.0.0.1 localhost loopback

Also, I have seen:
127.0.0.0 localhost loopback

thanks and good day

I'm ok
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: what is localhost entry in /etc/hosts

127.0.0.1 is a special IP address that is referred to as "loopback" with various aliases such as "localhost" and "lb". Essentially when the IP subsystem sees this address, it loops back to itself without making a physical network connection. It provides a mechanism for a box to always be able to talk to itself and can be very useful to see, for example, if the network is configured correctly eventhough the underlying NIC's may not yet be properly configured or connected.
If it ain't broke, I can fix that.
HGN
Honored Contributor

Re: what is localhost entry in /etc/hosts

Hi

The loop back address as mentioned by Clay does not have any physical connection but it is a loop back to itself.

Rgds

HGN