What’s the best way to turn a string in this form into an IP address: "0200A8C0". The “octets” present in the string are in reverse order, i.e. the given example string should generate 192.168.0.2.
What’s the best way to turn a string in this form into an IP
Share
Network address manipulation is provided by the socket module.
You can translate your hex string to
packed ipusingstruct.pack()and the little endian, unsigned long format.