简体   繁体   English

ServerSocket IP地址= :: / ::

[英]ServerSocket IP addr = ::/::

While debugging my ServerSocket object, I got this expression ServerSocket[addr=::/::,localport=32882] . 在调试ServerSocket对象时,我得到了表达式ServerSocket[addr=::/::,localport=32882] What does the ::/:: address mean please? ::/::地址是什么意思?

::(consecutive colons) is used when you have all zeros in the whole block. 当整个块中都为零时,使用::(连续冒号)。

Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334 示例:2001:0db8:85a3:0000:0000:8a2e:0370:7334

Refer Wikipedia for IPV6 Addresses 有关IPV6地址,请参阅Wikipedia。

One or more consecutive groups of zero value may be replaced with a single empty group using two consecutive colons (::), 1 but the substitution may only be applied once in the address, because multiple occurrences would create an ambiguous representation. 可以使用两个连续的冒号(::), 1将一个或多个连续的零值组替换为一个空组,但是该替换只能在地址中应用一次,因为多次出现会产生模糊的表示形式。

The example address can be further simplified: 2001:db8:85a3::8a2e:370:7334 示例地址可以进一步简化:2001:db8:85a3 :: 8a2e:370:7334

Considering your case, IP Address contains all zeros(ie 0.0.0.0) 考虑到您的情况,IP地址包含全零(即0.0.0.0)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM