mip 0.3.0

Get local IPv4 address
Documentation

mip

Get IPv4 address in rust - with 0 dependencies!

Crate mip gets the local IP address by requesting http://httpbin.org/ip and parsing the returned output.

It has 0 dependencies and only relies on the Rust std lib.

Usage

Add the following to Cargo.toml.

[dependencies]
mip = "0.3.0
use mip::IP;

fn main() {
    println!("My IP is {}", IP::is());
}

Or without use


fn main() {
    println!("My IP is {}", mip::IP::is());
}

Todo

Some things that need to be done

License

See LICENSE file.