A stylish and feature-rich command-line utility for IP address lookups.
- Detailed IP Information: Get location, network, and other details for any IP address.
- Multiple Output Themes: Choose from 8 stylish themes to display information.
- Customizable Fields: Select exactly which fields you want to see.
- Save to File: Export results to JSON or Markdown files.
- Easy Installation: Simple installation scripts for Linux, macOS, and Windows.
- Configurable: Customize default theme, fields, and colors.
Prerequisites:
The script will install the whatsip command to ~/.local/bin.
# Clone the repository and run the installer
git clone https://github.com/venterum/WhatSIP.git
cd WhatSIP
chmod +x install.sh
./install.sh
# The script will ask for your preferred command name (e.g., whatsip or ws)
# After installation, restart your terminal or source your shell's config file
# e.g., source ~/.bashrc or source ~/.zshrcThe script will install the command to %LOCALAPPDATA%\Scripts.
# If this is your first time running a local script, you may need to allow it.
# (Run this once in an Administrator PowerShell)
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
# Clone the repository and run the installer in a regular PowerShell window
git clone https://github.com/venterum/WhatSIP.git
cd WhatSIP
.\install.ps1
# The script will ask for your preferred command name (e.g., whatsip or ws)
# After installation, restart your terminal for the PATH changes to take effect.whatsip [IP_ADDRESS] [OPTIONS]
| Argument | Description |
|---|---|
IP_ADDRESS |
The IP address to look up. If omitted, it will use your own public IP. |
-f, --fields |
Specify which fields to display, separated by commas (e.g., country,city). |
--all |
Display all available fields. |
-o, --output |
Save the output to a file (e.g., result.json or result.md). |
-c, --config |
Specify a path to a custom config file. |
-h, --help |
Show the help message. |
# Look up your own IP address
whatsip
# Look up a specific IP
whatsip 8.8.8.8
# Look up multiple IPs
whatsip 8.8.8.8 1.1.1.1
# Show only the country, city, and ISP
whatsip 8.8.8.8 -f country,city,isp
# Save the full output for an IP to a markdown file
whatsip 8.8.8.8 --all -o report.mdThe configuration is stored in a config.json file. The script will create a default one for you.
- Linux/macOS:
~/.config/whatsip/config.json - Windows:
%LOCALAPPDATA%\whatsip\config.json
You can customize the following settings:
theme: The default display theme to use.default_fields: An array of fields to show by default.style: An object to customize the colors for different UI elements.
You can set the default theme in the config.json file. Eight themes are available:
sleek (default) - An elegant panel with a table.
┌─ Information for 8.8.8.8 ───────────┐
│ ┏━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓ │
│ ┃ Field ┃ Value ┃ │
│ ┡━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩ │
│ │ Country │ United States │ │
│ │ City │ Mountain View │ │
│ │ Isp │ Google LLC │ │
│ │ Query │ 8.8.8.8 │ │
│ └─────────┴───────────────────┘ │
└─────────────────────────────────────┘
dashboard - Data is grouped into several panels.
┌─ Information for 8.8.8.8 ──────────────────────────────────┐
│ │
└────────────────────────────────────────────────────────────┘
┌─ Location ───────────────┐ ┌─ Network ──────────────┐
│ Country: United States │ │ Isp: Google LLC │
│ City: Mountain View │ │ Query: 8.8.8.8 │
└──────────────────────────┘ └─────────────────────────┘
grid - A single table with categories.
┌───────── Information for 8.8.8.8 ──────────┐
│ Category │ Field │ Value │
├──────────┼─────────┼───────────────────────┤
│ Location │ Country │ United States │
│ │ City │ Mountain View │
│ Network │ Isp │ Google LLC │
│ Other │ Query │ 8.8.8.8 │
└──────────┴─────────┴───────────────────────┘
tree - A collapsible, tree-like structure.
IP Information for 8.8.8.8
├── Location
│ ├── Country: United States
│ └── City: Mountain View
├── Network
│ └── Isp: Google LLC
└── Other
└── Query: 8.8.8.8
minimal - Simple key-value pairs.
--- IP Information for 8.8.8.8 ---
Country: United States
City: Mountain View
Isp: Google LLC
Query: 8.8.8.8
compact - All information on a single line.
IP: 8.8.8.8 | Country: United States | City: Mountain View | Isp: Google LLC
json - Raw JSON output, useful for scripting.
{
"country": "United States",
"city": "Mountain View",
"isp": "Google LLC",
"query": "8.8.8.8"
}markdown - Formatted for markdown documents.
# IP Information for 8.8.8.8
## Location
- **Country**: United States
- **City**: Mountain View
## Network
- **Isp**: Google LLC
## Other
- **Query**: 8.8.8.8