I have to check if an IP address belongs to a predefined subnet. For example, IP Address 192.168.0.1 is in CIDR range 192.168.0.0/24.
I've tried with:
There is a method:
is_subnet_of for network_v4 class, but nothing similar for adress_v4. Did I miss something?
is_subnet_of
network_v4
adress_v4
1.4m articles
1.4m replys
5 comments
57.0k users