machine-ip 0.2.1

Get your machine's local IP address.
Documentation
  • Coverage
  • 0%
    0 out of 3 items documented0 out of 1 items with examples
  • Size
  • Source code size: 3.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • ivanceras/machine-ip
    7 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ivanceras

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