Crate query_external_ip

Source
Expand description

§query_external_ip

Get the external IPv4 and IPv6 of the computer by querying online services.

§Example

use query_external_ip::Consensus;

async fn get_ip() {
    match Consensus::get().await {
        Ok(c) => println!("{:#?}", c),
        Err(err) => println!("{}", err),
    }
}

Structs§

  • A consensus on what the external IPv4 and IPv6 is.

Enums§

  • An error describing what when wrong while querying an IP source.

Type Aliases§

  • The result from a Source