Calculate the N IP of a network
I would like to know which N IP of a given network my IP is.
For example 192.168.0.3 is the 3 IP of the network 192.168.0.0/20. The 256
IP would be 192.168.1.0
Is there a way to calculate this very fast in python? I know about ipcalc
but that does not has any option like this.
No comments:
Post a Comment