local-ip-address 0.1.0

Retrive system's local IP address
Documentation

Crates.io Documentation Build Clippy Formatter

Provides utility functions to get system's local network IP address by executing OS commands in the host machine.

The output from the executed command is then parsed and an instance of a IpAddr is returned from the function.

use local_ip_address::local_ip;

fn main() {
    let my_local_ip_address = local_ip().unwrap();

    println!("{:?}", my_local_ip_address);
}

Every host may or may not have a different approach on gathering the local IP address.

local-ip-address crate implements Conditional Compilation to execute different approaches based on host machine operative system.

Release

In order to create a release you must push a Git tag as follows

git tag -a <version> -m <message>

Example

git tag -a v0.1.0 -m "First release"

Tags must follow semver conventions Tags must be prefixed with a lowercase v letter.

Then push tags as follows:

git push origin main --follow-tags

Contributing

Every contribution to this project is welcome. Feel free to open a pull request, an issue or just by starting this project.

License

Distributed under the terms of both the MIT license and the Apache License (Version 2.0)