Is the IPv4 address inside 198.51.100.0/24 (TEST-NET-2 documentation)? Pure bit-mask check, no network call, returning inside true/false with the range's first/last address and size. Precise allow/deny rules for a well-known block. $0.01 per check.