JazzM,

the code that i posted can handle differnet subnets...

here is a simple example.

Code:

$myipaddress = "10.10.210.99"
$mySubnetmask = "255.255.128.0"

? "My subnet is " + IPDecimal(IPDecimal($myipaddress)&IPDecimal($mySubnetmask))




and when you run the script you get..

Code:

My subnet is 10.10.128.0