#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

#245 in #ip-address

Download history 29/week @ 2024-07-20 39/week @ 2024-07-27 32/week @ 2024-08-03 41/week @ 2024-08-10 26/week @ 2024-08-17 26/week @ 2024-08-24 40/week @ 2024-08-31 45/week @ 2024-09-07 55/week @ 2024-09-14 67/week @ 2024-09-21 45/week @ 2024-09-28 19/week @ 2024-10-05 63/week @ 2024-10-12 43/week @ 2024-10-19 84/week @ 2024-10-26 86/week @ 2024-11-02

278 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