Why does not localhost go online? [closed]

-2

Why can not we use IP 127.0.0.1 on the internet? Why does localhost return the same machine? Why localhost is blocked? Where can I find relevant information?

    
asked by anonymous 02.06.2017 / 01:21

1 answer

7

By specification every IP with class A 127 is reserved for internal network, so it is possible to use more than 16 million addresses internally.

Of course this holds true for IPv4. In IPv6 it changes a little.

IP-based networks need to communicate through these separate addresses in blocks, or classes as they are called formally. This facilitates routing of data packets and separation into subnets. IP is the address where you should go.

If it did not have a reserved block all the machines would have to use public IPs controlled by some entity and there would not be any separation. Today may start to seem strange to some, but we do not always want all machines communicating on the internet directly. Having this block isolated also allows these numbers to be used repeatedly, since each internal network is separated from the others.

If it was agreed that 127.0.0.1 would be an address reserved for the machine itself to reference. So it's the same process, only this time just have an IP. Whenever an application uses this address on a machine, it does not leave this machine. If you can not leave, you can not log in.

This is called loopback .

02.06.2017 / 02:30