Quantcast
Channel: How do you get the IP address of a given network interface? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Sean McCully for How do you get the IP address of a given network...

$ sudo pip install netifaces$ pythonPython 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwinType "help", "copyright", "credits" or "license" for more...

View Article



How do you get the IP address of a given network interface?

In Python is there a function to get the IP address of a given network interface?Is there a command line programme that get do this?I want to get the IP address of en1.This is the result of ifconfig on...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images