Splitting the IP’s at the dot so that you get 4 separate pieces and put these is 4 separate variables and doing the same for the second IP.
Then you will have something like this:

$IPa1 will be 172
$IPa2 will be 26
$IPa3 will be 181
$IPa4 will be 34

$IPb1 will be 172
$IPb2 will be 26
$IPb3 will be 181
$IPb4 will be 152

You can then compare $IPa1 to $IPb1 if this is the same continue with a compare of $IPa2 to $IPb2, etc…. until you find a difference and should do some script stuff.
I think this would be more reliable.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.