Why doesn’t localhost go online?

Asked

Viewed 249 times

-2

Why can’t we use IP 127.0.0.1 on the internet? Why localhost returns the same machine? Because the localhost is blocked? Where can I find relevant information?

  • Could you explain it better? Your question is unclear

  • Why can’t we use ip 127.0.0.1 on the internet? Why does localhost return to the same machine? Why is localhost locked? Where I can find relevant information?

  • Now I get it, take a look therein and therein

  • In short, these addresses point to the current machine, so you can not access the internet directly by localhost, that one reply explains a little too

  • To prevent you from being able to edit your questions, I suggest you create a definitive account on the site and request a merge with the account that created this question, through this link: https://answall.com/contact

  • 1

    I’ve already requested the accounts merge

  • The question was well closed because originally it was quite another place, only the subject was the same. I even think you should revert to the original and have a new question with this subject.

  • @Stro-ale The answer solved your question? Do you think you can accept it? See [tour] if you don’t know how to do it. This would help a lot to indicate that the solution was useful for you. You can also vote on any question or answer you find useful on the entire site (when you have 15 points).

Show 3 more comments

1 answer

6

By specification all 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 goes for Ipv4. In Ipv6 it changes a little.

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

If you didn’t have a reserved block all machines would have to use public Ips controlled by some entity and there would be no separation. Today may start to sound strange to some, but we don’t always want all machines communicating on the internet directly. Having this block isolated also allows these numbers to be used over and over again, since each internal network is separated from the others.

It was agreed that the 127.0.0.1 would be a reserved address for the machine itself to self-reference. So it’s the same process, only this time just take an IP. Whenever any application uses this address on a machine, it does not leave from within this machine. If it cannot exit, it cannot enter.

This is called loopback.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.