Determine local IPv4 and IPv6 addresses using Python
$100-500 USD
Cancelado
Publicado hace más de 11 años
$100-500 USD
Pagado a la entrega
I need a Python script that determines the local IPv4 and IPv6 addresses of a computer. This will be accomplished using the ctypes library to access ie winsock dlls and will not execute ifconfig or other shell script. The result must be pure python. The script must be able to detect if it is running on Windows, Linux, or MacOS and return the correct result. The delivered code must be pure python and must not require compilation.
The built in socket module does not have the ability to reliably return all the local ip addresses. There is a module netifaces which has the ability to return local ip addresses, however it is a c module that requires compilation which limits portability.
(This is not a course project.)