While debugging my ServerSocket object, I got this expression 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
Refer Wikipedia for IPV6 Addresses
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.
The example address can be further simplified: 2001:db8:85a3::8a2e:370:7334
Considering your case, IP Address contains all zeros(ie 0.0.0.0)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.