IP Lookup Tool
Find your IPv4, IPv6, country, city, ISP, and approximate IP location.
Your IPv4
Your IPv6
IP Details
Approximate IP Location
Note: IP location is approximate. It does not show exact home address, name, phone number, or email.
How This IP Lookup Tool Works
This tool uses free APIs and a map service. It does not detect the city or map location by itself.
1. Detecting IPv4 and IPv6
The code uses the ipify API to detect the visitor’s public IP address:
https://api.ipify.org?format=json
https://api6.ipify.org?format=json
The api.ipify.org endpoint returns the visitor’s IPv4 address, while api6.ipify.org checks and returns the IPv6 address if available. The ipify API provides public IP address data in JSON format.
2. Detecting City, Country, ISP, Latitude, and Longitude
For IP details, the code uses the ipapi.co API:
https://ipapi.co/IP_ADDRESS/json/
This API returns details related to the IP address, such as city, region, country, postal code, latitude, longitude, timezone, ASN, and organization/ISP.
3. Showing the Map
To display the map, the code uses an OpenStreetMap iframe. The latitude and longitude are received from ipapi.co, and then those coordinates are used to center the map and show the approximate location marker.
Simple Flow
Visitor opens the page
↓
ipify detects IPv4 / IPv6
↓
ipapi.co provides city, country, ISP, latitude, and longitude
↓
OpenStreetMap displays the location on the map
Important Note
This is not an exact location. IP lookup only shows an approximate network or city-level location.
