127.0.0.1 vs 0.0.0.0

Posted zhouj-happy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了127.0.0.1 vs 0.0.0.0相关的知识,希望对你有一定的参考价值。

What is the Difference Between 127.0.0.1 and 0.0.0.0?

  • 127.0.0.1 is the loopback address (also known as localhost).
  • 0.0.0.0 is a non-routable meta-address used to designate an invalid, unknown, or non-applicable target (a ‘no particular address’ place holder).

In the context of a route entry, it usually means the default route.

In the context of servers, 0.0.0.0 means all IPv4 addresses on the local machine. If a host has two IP addresses, 192.168.1.1 and 10.1.2.1, and a server running on the host listens on 0.0.0.0, it will be reachable at both of those IPs.

 

 

https://www.howtogeek.com/225487/what-is-the-difference-between-127.0.0.1-and-0.0.0.0/

以上是关于127.0.0.1 vs 0.0.0.0的主要内容,如果未能解决你的问题,请参考以下文章

IP地址的基础知识:127.0.0.1 VS 0.0.0.0

IIS 只监听 127.0.0.1 而不是 0.0.0.0

127.0.0.1和0.0.0.0和本机IP的区别

如何在php上获得价值127.0.0.1而不是::1

服务器监听127.0.0.1与0.0.0.0的区别

markdown 127.0.0.1和0.0.0.0的区别