In particular, I'm interested in a programmatic way to get a list of IP addresses, such as those returned by ifconfig .
ifconfig
Preferably, the solution will be cross-platform.
Take a look at the pnet box :
extern crate pnet; use pnet::datalink; fn main() { for iface in datalink::interfaces() { println!("{:?}", iface.ips); } }