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 45/week @ 2024-07-21 60/week @ 2024-07-28 50/week @ 2024-08-04 57/week @ 2024-08-11 33/week @ 2024-08-18 48/week @ 2024-08-25 54/week @ 2024-09-01 48/week @ 2024-09-08 50/week @ 2024-09-15 72/week @ 2024-09-22 59/week @ 2024-09-29 7/week @ 2024-10-06 43/week @ 2024-10-13 39/week @ 2024-10-20 58/week @ 2024-10-27 52/week @ 2024-11-03

192 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