stackuser
stackuser

Reputation: 121

How to calculate number of addresses between two IPv6 addresses

i found this link for How to calculate number of hosts between two ips for ipv4 How to calculate number of hosts between two ips? c#

is there any calculation like that for ipv6 for example between: 2a00:1288:110:8b1::2000 and 2a00:1288:110:8b1::21f9

Please help

Upvotes: 0

Views: 613

Answers (1)

danblack
danblack

Reputation: 14736

An IPv6 address is a 128 bit number. Like the IPv4 example, use the language functions to convert it to this number and take the differences between the two.

Upvotes: 1

Related Questions