Ip info in console written in rust
ipinfo is very easy to use
ipinfo <ip (optional)>
If you provide an IP it will get information for that IP, If you don't provide an IP it will use your IP.
$ ipinfo 42.193.137.162
IP: "42.193.137.162"
City: "Shenzhen"
Region: "Guangdong"
Country: "CN"
Location: "22.5455,114.0683"
Organization: "AS45090 Shenzhen Tencent Computer Systems Company Limited"
Postal Code: null
Timezone: "Asia/Shanghai"
To install ipinfo first run
git clone https://github.com/Minejerik/rust-ipinfo.git
This clones the repo to your local disk, now run
cargo install --path rust-ipinfo/
This installs all the dependencies and builds the ipinfo tool.
Once you have completed both of these commands, just run ipinfo in the terminal to use the tool.