Installation
import { Tabs, TabItem } from ‘@astrojs/starlight/components’;
Requirements
Section titled “Requirements”| Method | Requires |
|---|---|
| npm | Node.js >= 18 |
| Homebrew | macOS or Linux |
| Scoop | Windows |
| Docker | Docker Engine |
| Bash script | curl + jq |
| PowerShell script | PowerShell 5.1+ or 7+ |
Install via npm (recommended)
Section titled “Install via npm (recommended)”Works on all platforms where Node.js is available.
npm install -g ipwhoamiVerify the installation:
ipwhoami --versionRun without installing
Section titled “Run without installing”npx ipwhoami 8.8.8.8Homebrew (macOS / Linux)
Section titled “Homebrew (macOS / Linux)”brew tap vineethkrishnan/ipwhoamibrew install ipwhoamiThe formula is auto-updated on each release.
Scoop (Windows)
Section titled “Scoop (Windows)”scoop bucket add ipwhoami https://github.com/vineethkrishnan/scoop-ipwhoamiscoop install ipwhoamiUpdate later with:
scoop update ipwhoamiDocker
Section titled “Docker”No installation needed — just run the image:
# Look up an IPdocker run --rm vineethnkrishnan/ipwhoami 8.8.8.8
# Compare providersdocker run --rm vineethnkrishnan/ipwhoami -c 1.1.1.1
# Raw JSON outputdocker run --rm vineethnkrishnan/ipwhoami -r 8.8.8.8Also available from GitHub Container Registry:
docker run --rm ghcr.io/vineethkrishnan/ipwhoami 8.8.8.8Use in CI pipelines
Section titled “Use in CI pipelines”# GitHub Actions example- name: Get server geolocation run: docker run --rm vineethnkrishnan/ipwhoami -r $SERVER_IPStandalone Bash Script (macOS / Linux)
Section titled “Standalone Bash Script (macOS / Linux)”No Node.js needed — just curl and jq.
One-liner install
Section titled “One-liner install”curl -fsSL https://raw.githubusercontent.com/vineethkrishnan/ipwhoami/main/install.sh | bashManual install
Section titled “Manual install”curl -O https://raw.githubusercontent.com/vineethkrishnan/ipwhoami/main/scripts/ipwhoami.shchmod +x ipwhoami.shsudo mv ipwhoami.sh /usr/local/bin/ipwhoamiStandalone PowerShell Script (Windows)
Section titled “Standalone PowerShell Script (Windows)”No Node.js needed — uses built-in Invoke-RestMethod.
# DownloadInvoke-WebRequest -Uri "https://raw.githubusercontent.com/vineethkrishnan/ipwhoami/main/scripts/ipwhoami.ps1" -OutFile "$HOME\ipwhoami.ps1"
# Add alias to your profileAdd-Content $PROFILE 'Set-Alias ipwhoami "$HOME\ipwhoami.ps1"'Restart your terminal, then run:
ipwhoami 8.8.8.8