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

#15 in #hostname

Download history 45/week @ 2024-09-07 49/week @ 2024-09-14 74/week @ 2024-09-21 57/week @ 2024-09-28 16/week @ 2024-10-05 41/week @ 2024-10-12 41/week @ 2024-10-19 53/week @ 2024-10-26 55/week @ 2024-11-02 15/week @ 2024-11-09 27/week @ 2024-11-16 66/week @ 2024-11-23 56/week @ 2024-11-30 138/week @ 2024-12-07 91/week @ 2024-12-14 19/week @ 2024-12-21

313 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