I would like to increment an ip address by a fixed value.
Precisely this is what I am trying to achieve, I have an ip address say, 192.168.0.3 and I wan
192.168.0.3
EDIT: This is buggy and shouldn't be used as is.
I would use ipaddr for this
>>> import ipaddr >>> a = ipaddr.IPAddress('192.168.0.3') >>> a IPv4Address('192.168.0.3') >>> a + 1 IPv4Address('192.168.0.4')