networking - How Global Unicast Addresses work for IPv6 on android devices -
i developing android app , need find global unicast addresses android device without make network requests. (that should easy if can make network request since can therefore see outfacing public ipv6 in header). want see how find unicast address before make network request.
i have used apis retrieve possible ipv6 interfaces. focus on ips falling 2000::/3
range. however, got 1 ipv6 ( right answer), got two/multiple address in 2000::/3
range. assume scenario might cause network status changes, not sure.
for example: api returns me following 2 ipv6s
2600:1010:b022:1349:d25c:f9bf:2881:d30c%3%3
, 2600:1010:8043"3aba:67ca:ac76:4a8f:dbdb%9%9
can tell me how global unicast ipv6 works on android devices? how can ensure getting real ipv6 , not temporary one?
with privacy extensions, temporary address rest of world use. periodically changes try prevent associating address you. how privacy extension implemented os dependent, but, generally, temporary address while, change new temporary address, , old temporary address still available deprecated while before goes away. real address not change, not used other devices see it. behavior os-dependent, mileage may vary.
the real answer question depends on intend address. may want temporary address instead of dhcp or slaac assigned address, must realize change.
also, %3%3
or %9%9
in addresses not part of ipv6 address; indicators of interface address assigned. (a link-local address needs since link-local address may same on multiple interfaces.) i'm not sure, may looking @ 2 different interfaces (connections different sources wi-fi, , cellular, or 2 different cellular towers?).
Comments
Post a Comment