Is 0.0.0.0 a valid IP address?

后端 未结 10 1231
遇见更好的自我
遇见更好的自我 2020-11-29 04:14

Is 0.0.0.0 a valid IP address? I want my program to be able to store it as an indication that no address is in use, but this won\'t work if it\'s actually valid.

10条回答
  •  庸人自扰
    2020-11-29 04:45

    Yes, it is an IP address but it is reserved.

    0.0.0.0/8 - Addresses in this block refer to source hosts on "this" network. Address 0.0.0.0/32 may be used as a source address for this host on this network; other addresses within 0.0.0.0/8 may be used to refer to specified hosts on this network

提交回复
热议问题