IP Cow logo IP Cow

Privacy-first IP, DNS & email tools · 20+ years of serving your IP

Command-Line IP

IP

Your public IP as plain text — curl checkip.ipcow.com. Force IPv4/IPv6 with -4/-6, or add ?json. Built for scripts.

Live — what you'd get

Default
resolving…
IPv4
resolving…
IPv6
resolving…

Plain text, no tracking, CORS-open — resolved on IP Cow infrastructure, never sent to a third party.

From the command line

  • Your IP IPv4 or IPv6, per your connection
    curl checkip.ipcow.com
  • Force IPv4 always the A-record stack
    curl -4 checkip.ipcow.com
  • Force IPv6 always the AAAA-record stack
    curl -6 checkip.ipcow.com
  • As JSON {"ip":"…"} · quote the ? so zsh doesn't glob it
    curl 'checkip.ipcow.com?json'

Also available at checkipv4.ipcow.com and checkipv6.ipcow.com when you need to pin a stack from a browser. Works in scripts, CI, and right here in the page.