pub fn addresses() -> Result<Vec<IpAddr>>
The addresses of the interfaces that are up, without loopback and link-local addresses (E-57).
println!("addresses: {:?}", sys_lib::net::addresses()?);
As interfaces.
interfaces