user506710
user506710

Reputation:

converting IPv6 string to bytes + python

Just as we use socket.inet_aton() for converting Ipv4 string is there any way to convert the IPv6 address string in Windows.

The function socket.inet_pton() is only available for Unix.

So is there any other way for me to do that on windows and python 2.6 ???

Upvotes: 1

Views: 2119

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798606

IPy can do all sorts of IP address manipulations.

Also, inet_pton() is available as of Windows Vista, but Python targets older releases as well.

Upvotes: 2

Related Questions