IPinfo CLI: Network Information and IP Lookup Tool

IPinfo CLI is a command-line tool that is used to look up detailed information about IP addresses, ASNs, domains, and networks from the terminal. It provides information such as country, city, ISP, hostname, ASN, and other publicly available network details. You can install and use IPinfo CLI in Termux to perform IP lookups and basic network reconnaissance tasks using simple commands.

How to Install IPinfo CLI in Termux

Follow the commands below to install IPinfo CLI in Termux. Run each command in order to complete the installation and start using the tool.

Update Termux packages.

pkg update && pkg upgrade -y

Install Git and Go.

pkg install git golang -y

Install IPinfo CLI.

go install github.com/ipinfo/cli/ipinfo@latest

Move the IPinfo binary to the Termux binary directory.

cp ~/go/bin/ipinfo $PREFIX/bin/

Check the installed version.

ipinfo version

IPinfo CLI is now installed and ready to use.

How to Use IPinfo CLI in Termux

IPinfo CLI provides different commands to retrieve and analyze publicly available IP address information from the terminal. Below are some useful commands that you can use in Termux.

Lookup information about an IP address.

ipinfo 8.8.8.8

Lookup information about an ASN.

ipinfo AS15169

Display information about your public IP.

ipinfo myip

Lookup multiple IP addresses in bulk.

ipinfo bulk

Display ASN-related tools.

ipinfo asn

Summarize information for a group of IP addresses.

ipinfo summarize

Open a map showing IP locations.

ipinfo map

Convert a CIDR block to an IP range.

ipinfo cidr2range 192.168.1.0/24

Convert a CIDR block into individual IP addresses.

ipinfo cidr2ip 192.168.1.0/24

Convert an IP range into CIDR blocks.

ipinfo range2cidr 192.168.1.1-192.168.1.254

Generate random IP addresses.

ipinfo randip

Display the output in JSON format.

ipinfo 8.8.8.8 --json

Display the output in CSV format.

ipinfo 8.8.8.8 --csv

Display the output in YAML format.

ipinfo 8.8.8.8 --yaml

Display only a specific field.

ipinfo 8.8.8.8 --field country

Show the help menu.

ipinfo --help

Choose the command you want and IPinfo CLI will automatically retrieve and display the requested IP address or network information inside the Termux terminal.

IpInfo Tool Overview

IPinfo CLI is a useful networking tool for looking up IP addresses and ASN information directly from the terminal. It provides quick access to publicly available network details, which is good for learning networking, OSINT, and basic reconnaissance in Termux.

SHARE THIS POST: