0
ipaddress = '192.168.1.9'
ip_range = '192.168.1.1-192.168.1.5'

How can I return true/false when looking up if ipaddress is inside ip_range? I know I can use ip_address module but it's not clear how to do this.

  • 1
    Does this answer your question? [check if an IP is within a range of CIDR in Python](https://stackoverflow.com/questions/39358869/check-if-an-ip-is-within-a-range-of-cidr-in-python) – Kris Nov 24 '21 at 06:20

0 Answers0