#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

#213 in #ip-address

Download history 40/week @ 2024-03-11 46/week @ 2024-03-18 59/week @ 2024-03-25 93/week @ 2024-04-01 32/week @ 2024-04-08 38/week @ 2024-04-15 37/week @ 2024-04-22 34/week @ 2024-04-29 37/week @ 2024-05-06 36/week @ 2024-05-13 45/week @ 2024-05-20 39/week @ 2024-05-27 34/week @ 2024-06-03 30/week @ 2024-06-10 42/week @ 2024-06-17 34/week @ 2024-06-24

147 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