[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: get my ip address



tony;
I am aware that I can call ip a and parse the result. [...]

Is there any other way to obtain this data, maybe from /sys?

just call libc.getifaddrs() directly.

* http://programmaticallyspeaking.com./getting-network-interfaces-in-python.html


Reply to: