HackMyIP

Get your IP and network info from the command line

HackMyIP is User-Agent aware. Hit it from a terminal and it returns clean, pipe-friendly text instead of the website — no install beyond curl, no signup, no API key.

$ curl hackmyip.com

Prints your IP, city, country, and network (ASN + ISP).

$ curl hackmyip.com
Your IP, location, and network (ASN + ISP) as clean text.
$ curl hackmyip.com/ip
Your public IP only — raw, perfect for piping into scripts.
$ curl hackmyip.com/json
IP, city, country, ASN, and org as a small JSON object.
$ curl hackmyip.com/headers
The request headers your client is sending.
$ curl hackmyip.com/ua
Your raw User-Agent string.
$ curl hackmyip.com/asn
Your ASN and the network org / ISP behind it.
$ curl hackmyip.com/proxy
VPN / proxy / datacenter verdict for your IP (alias: /vpn).
$ curl hackmyip.com/rdns
Reverse DNS (PTR) hostname of your IP.
$ curl hackmyip.com/help
The full command menu in your terminal (alias: /cli, /commands).

Why use it

  • No signup, no account, no email.
  • No API key — just curl and go.
  • No ads, no tracking on these endpoints.
  • Runs on Cloudflare's edge — fast everywhere.
  • Clean text and JSON, easy to pipe into scripts.
  • Free for personal and commercial use.

FAQ

How do I get my IP address with curl?
Run curl hackmyip.com in any terminal. It prints your public IP plus your city, country, and network. curl ships with macOS, Linux, and Windows 10/11, so there is nothing to install. For just the raw IP, use curl hackmyip.com/ip; for JSON, use curl hackmyip.com/json.
Is there a no-signup IP API?
Yes. This terminal toolkit needs no signup, no API key, and no credit card. It runs on Cloudflare's edge and is free for personal and commercial use. For richer fields (timezone, privacy grade, any IP), there's a keyless JSON API documented in the API docs.
How do I check if my IP is a VPN or proxy from the terminal?
Run curl hackmyip.com/proxy. It returns a yes/no verdict and whether your IP belongs to a datacenter/hosting network (common for VPNs, proxies, and servers) or looks residential. The alias curl hackmyip.com/vpn does the same.
Does it work on Windows PowerShell?
Yes. Windows 10 and 11 ship curl, so curl hackmyip.com works in Command Prompt and PowerShell. You can also use (Invoke-WebRequest hackmyip.com/json).Content in PowerShell for the JSON form.
Want the full no-key REST API (any IP, breach checks, DNS, ports)? See the API docs · or read the curl what-is-my-IP guide.