getip 0.2.0

Find the public IP address of a device
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## getip

A small crate to find the public IP address of a device.

> [!NOTE]
> This crate is just an updated and minified version of https://github.com/avitex/rust-public-ip

### Example

```rust
#[tokio::main]
async fn main() {
    match getip::addr().await {
        Ok(addr) => println!("My address is: {addr:?}"),
        Err(e) => println!("Failed to resolve: {e:?}"),
    }
}
```