Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ip address is subnet of

>>> import ipaddress
>>> ipaddress.ip_address('192.168.0.1') in ipaddress.ip_network('192.168.0.0/24')
True
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #ip #address #subnet
ADD COMMENT
Topic
Name
4+9 =