I'm looking for a function to return true/false depending on if two supplied
IP's (as strings) are in the same subnet (also supplied).
Im getting nowhere fast unfortunately - I know the theory behind it, but I
have no idea on how to actually implement it!
I have split my supplied 3 IP's into 4 numbers each, but past that I'm
stuck - on paper I would convert them to binary and write down all the 1's
and 0's then figure it out, but in code...?
Thanks
James