Specifically, I am interested in a programmatic way for acquiring a list of IP addresses such as those returned by ifconfig.
ifconfig
Preferably, the solution would
Check out the pnet crate:
extern crate pnet; use pnet::datalink; fn main() { for iface in datalink::interfaces() { println!("{:?}", iface.ips); } }