3 unstable releases

Uses old Rust 2015

0.2.1 Aug 1, 2018
0.2.0 Nov 20, 2017
0.1.0 Nov 10, 2017

#14 in #hostname

Download history 66/week @ 2024-03-12 60/week @ 2024-03-19 74/week @ 2024-03-26 121/week @ 2024-04-02 37/week @ 2024-04-09 62/week @ 2024-04-16 67/week @ 2024-04-23 55/week @ 2024-04-30 62/week @ 2024-05-07 117/week @ 2024-05-14 90/week @ 2024-05-21 58/week @ 2024-05-28 61/week @ 2024-06-04 48/week @ 2024-06-11 57/week @ 2024-06-18 46/week @ 2024-06-25

221 downloads per month
Used in 3 crates

MIT license

3KB

machine-ip

Get your local ip address in Rust, using hostname -I under the hood, may not work in older versions of windows

machine-ip = "0.1"

then

extern crate machine_ip;

let ip = machine_ip::get().unwrap();
println!("local ip address: {:?}", ip.to_string());

License

MIT

No runtime deps