as you know, IP is a combination of 4 parts. every part is from 0-255, for example 234.32.135.7.

now, my question is, what is the probability that two IPs will get the exact same first 3 parts. for example 1.2.3.

**234**and 1.2.3.

**121**.

is it just 256^3?

and what is the chance that out of 1500 IPs, 40 will have the same first 3 parts?

thanks!