What Is My IP Address?

Instantly see your public IPv4 and IPv6 addresses with geolocation and security details.

Detecting your IP addresses...

Detecting your IP address...

Privacy & Security Tools

Test your privacy and check for potential leaks.

IP Intelligence

Everything you need to know about any IP address.

IP Geolocation

Country, region, city, coordinates, and timezone data.

Security Assessment

VPN, proxy, Tor detection and threat analysis.

ISP & Network Info

ISP name, ASN, organization, and connection details.

Developer API

Free JSON API. Works with curl, wget, and all languages.

Developer API

Free JSON API with automatic CLI detection. No API key required.

Quick Start

$ curl https://whatismyip.io

Code Examples

# Get your own IP info
curl https://whatismyip.io

# Look up a specific IP
curl https://whatismyip.io/8.8.8.8

Response Format

{
  "ip": "8.8.8.8",
  "type": "ipv4",
  "hostname": "dns.google",
  "country_code": "US",
  "country_name": "United States",
  "region_name": "California",
  "city": "Mountain View",
  "latitude": 37.42301,
  "longitude": -122.083352,
  "connection": {
    "asn": 15169,
    "isp": "Google LLC"
  },
  "security": {
    "is_proxy": false,
    "is_vpn": false,
    "threat_level": "low"
  }
}

Supported Clients

Our API automatically detects requests from these tools and returns JSON:

CLI Tools

curl, wget, httpie

Languages

Python, Node, Go, PHP

Libraries

axios, requests, fetch

Other

Postman, Insomnia

FAQ

Common questions about IP addresses.

What is an IP address?

An IP address is a unique identifier assigned to every device connected to the internet. It allows devices to communicate with each other.

What is the difference between IPv4 and IPv6?

IPv4 uses 32-bit addresses (e.g., 192.168.1.1) with ~4.3 billion possible addresses. IPv6 uses 128-bit addresses (e.g., 2001:db8::1) with virtually unlimited addresses. IPv6 is the newer standard designed to replace IPv4 as addresses run out.

Why do I only have IPv4 and not IPv6?

Many ISPs have not yet fully deployed IPv6. Your router or network equipment may also need to support IPv6. Contact your ISP to check if IPv6 is available in your area.

Can someone find my exact location from my IP?

No. An IP address only reveals approximate geographic location, typically at the city level. Only your ISP can connect your IP to your actual address.

How can I hide my IP address?

You can use a VPN (Virtual Private Network), proxy server, or the Tor network to mask your real IP address from websites.

Is this service free?

Yes! Our IP lookup is completely free for personal use. We also provide a free API for developers.

Ready to integrate?

Use our free API to add IP intelligence to your applications.

View API Documentation