I am attempting to find out if the ip address of the computer matches a certain subnet so I can perform specific actions.
I am using the information from here:
My problem is getting the ip address and matching it against a string of the first three octets. 192.168.1 vs 192.168.2
Can you provide example for this? if first three octets = 192168.1 do something else do something different sort of logic?