码迷,mamicode.com
首页 > 其他好文 > 详细

127.0.0.1 vs 0.0.0.0

时间:2020-01-08 10:44:10      阅读:81      评论:0      收藏:0      [点我收藏+]

标签:des   host   https   text   ESS   www   targe   ddr   oca   

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

标签:des   host   https   text   ESS   www   targe   ddr   oca   

原文地址:https://www.cnblogs.com/zhouj-happy/p/12165090.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!