import random
import socket
import struct
socket.inet_ntoa(struct.pack('>I', random.randint(1, 4294967295)))
socket.inet_ntoa(struct.pack('>I', random.randint(1, 4294967295)))
Python randomly generated IP address of the string