Generate Random IP with Python

In need of an IP address on-the-fly that appears to be valid? Try this: from random import randrange   def generateIP(): blockOne = randrange(0, 255, 1) blockTwo = randrange(0, 255, 1) blockThree = randrange(0, 255, 1) blockFour = randrange(0, 255, 1) print ‘Random IP: ‘ + str(blockOne) + ‘.’ + str(blockTwo) + ‘.’ + str(blockThree) […]