/rust-ip-info

small tool for get information about ip

Primary LanguageRust

Small tool for get ip information

Install

Needed install rust

git clone https://github.com/3JIou-home/rust-ip-info.git
cd ./rust-ip-info
cargo buld --release
./target/release/rust-ip-info --ip 1.1.1.1

or for buil in docker

./build.sh

Example output

+--------------+-------------------------------------------+
| Name         | Response                                  |
+--------------+-------------------------------------------+
| Request ip   |                                   1.1.1.1 |
+--------------+-------------------------------------------+
| Country      |                                 Australia |
+--------------+-------------------------------------------+
| Region       |                                Queensland |
+--------------+-------------------------------------------+
| City         |                            South Brisbane |
+--------------+-------------------------------------------+
| Provider     |                           Cloudflare, Inc |
+--------------+-------------------------------------------+
| Organization | APNIC and Cloudflare DNS Resolver project |
+--------------+-------------------------------------------+
| AS           |                  AS13335 Cloudflare, Inc. |
+--------------+-------------------------------------------+
| Is mobile    |                                     false |
+--------------+-------------------------------------------+
| Is proxy     |                                     false |
+--------------+-------------------------------------------+
| Is hosting   |                                      true |
+--------------+-------------------------------------------+