check wheather ip is in range, used for blacklist/whitelist