I want to use the Python3 library ipaddress to convert a binary IPv4 network address into 4 octets; how would I do that?
Example:
1100 0000 - 1010 1000 - 0000 0000 - 0000 0000
to
192.168.0.0
I want to use the Python3 library ipaddress to convert a binary IPv4 network address into 4 octets; how would I do that?
Example:
1100 0000 - 1010 1000 - 0000 0000 - 0000 0000
to
192.168.0.0
I don't think there is a straightforward way, especially not if the input is in such a weird format. Convert each "octat" to decimal:
Outputs