#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

#260 in #ip-address

Download history 45/week @ 2024-11-15 44/week @ 2024-11-22 45/week @ 2024-11-29 70/week @ 2024-12-06 79/week @ 2024-12-13 18/week @ 2024-12-20 6/week @ 2024-12-27 41/week @ 2025-01-03 84/week @ 2025-01-10 60/week @ 2025-01-17 54/week @ 2025-01-24 63/week @ 2025-01-31 81/week @ 2025-02-07 93/week @ 2025-02-14 107/week @ 2025-02-21 77/week @ 2025-02-28

371 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
~76K SLoC