Test if IPs are in same subnet

Hello, today this is not a post about Windows Azure, but an old little function to test if an ip is in the same subnet as another ip.

How it works ? Well, we have 3 functions, the two first are here to be used locally, and the function you’ll have to use to test is Test-IsInSameSubnet.

Here is the main code…

Hope it’ll help you!

 

See ya 🙂

 

If you wan to use the # source code version it’s here