#public-ip #ip-address #ip #ipify #ipv4-address #publicip #ipfinder

ipfy-public-ip

this package uses ipify to get the public ip and return the ipv4 ip address of the request

3 releases

0.1.2 Sep 30, 2023
0.1.1 Sep 27, 2023
0.1.0 Sep 27, 2023

#2 in #ipify

MIT license

4KB

ipfy_public_ip

A tiny crate providing the find_ip function, which will return the public ip of the request.

Documentation

this is simple to use tiny package. API documentation is here.

Installation

In Cargo.toml:

[dependencies]
ipfy-public-ip = "0.1.1"

And in your crate root:

use ipfy_public_ip;

Example

use ipfy_public_ip;

let res = ipfy_public_ip::find_ip();
println!("{}", res);

lib.rs:

ipfy-public-ip

ipfy-public-ip is providing the public ip using IPIFY

Examples

let response = ipfy-public-ip::find_ip();
println!("", response) 
print results 83.83.83.83

Dependencies

~7–18MB
~255K SLoC