query_external_ip 0.1.1

Asynchronous library for querying the system's external IPv4 and IPv6
Documentation

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),
    }
}