ipfy-public-ip

Crates.ioipfy-public-ip
lib.rsipfy-public-ip
version0.1.2
sourcesrc
created_at2023-09-27 13:07:20.602012
updated_at2023-09-30 18:16:47.059668
descriptionthis package uses ipify to get the public ip and return the ipv4 ip address of the request
homepagehttps://github.com/surrenderoz/ipify-public-ip.git
repositoryhttps://github.com/surrenderoz/ipify-public-ip.git
max_upload_size
id984673
size3,048
Surendra Verma (surrenderoz)

documentation

README

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);
Commit count: 8

cargo fmt