#ip-address #local #windows

nightly bin+lib local-ip

Get your local IP address

1 unstable release

Uses old Rust 2015

0.1.0 Sep 12, 2016

#200 in #ip-address

Download history 18/week @ 2023-12-04 28/week @ 2023-12-11 38/week @ 2023-12-18 14/week @ 2023-12-25 5/week @ 2024-01-01 37/week @ 2024-01-08 41/week @ 2024-01-15 17/week @ 2024-01-22 4/week @ 2024-01-29 23/week @ 2024-02-05 40/week @ 2024-02-12 37/week @ 2024-02-19 52/week @ 2024-02-26 37/week @ 2024-03-04 40/week @ 2024-03-11 46/week @ 2024-03-18

178 downloads per month
Used in 3 crates

MIT license

2KB

local-ip

Get your local ip address in Rust.

local-ip = "0.1"

then

extern crate local_ip;

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

TODO: Windows support.

License

MIT or Apache-2.0, at your option.

Dependencies

~3.5MB
~75K SLoC