This is a shell script designed to check how your public IP address is identified by various IP databases. The script queries multiple sources to retrieve the country code associated with your IP, providing a comprehensive overview of how different services interpret your location.
-
Multiple Sources: Supports queries from over 20 different IP information services, including:
ipinfo.io
ipapi.com
ipregistry.co
db-ip.com
- and many more!
-
User-Friendly Output: Displays the results in a clean and formatted manner, showing how each service identifies your IP.
-
Lightweight: Written in Bash, the script has minimal dependencies, primarily requiring
curl
andjq
for network requests and JSON parsing.
Currently script supports automatic installation for the following OSes:
- Debian/Ubuntu
- Arch Linux
For other systems, please install curl
and jq
manually.
With curl:
curl -s "https://raw.githubusercontent.com/vernette/ipregion/refs/heads/master/ipregion.sh" | bash
With wget:
wget -qO - "https://raw.githubusercontent.com/verrette/ipregion/refs/heads/master/ipregion.sh" | bash
Or clone the repository and run the script manually:
git clone https://github.com/vernette/ipregion.git
cd ipregion
chmod +x ipregion.sh
./ipregion.sh
- Add more IP services
- Add more supported OSes
- Handle errors when doing network requests
- Handle service rate limit errors
- Add IP identification by various sites (Google, TikTok, OpenAI, etc.)