IP address lookup by troubleshootings.tools shows the public-facing IPv4 address by visiting the webpage with related information such as location, ISP, PTR record and much more. There are a variety of display options, starting on the web page itself, a preview of the link shared through a messenger or similar, or via API on a different web page or app.
- ) Web page
- ) Webhook
- ) Open Graph
- ) OpenSearch
- ) HTML search form
- ) API
- ) Limitations and caveats
Explore your own public-facing IPv4 address
- Visit with a web browser https://troubleshooting.tools/lookup/ip/
- The page already display your public-facing IP address including all related informations
Explore any other public IPv4 address
- Visit with a web browser https://troubleshooting.tools/lookup/ip/
- Enter an IP address in the search form
- Hit enter key or submit button
Beside the classic form input on the web page, the web page supports also webhooks. This possibility is ideal to share a link and guide the recipient directly to the results.
URL: https://troubleshooting.tools/lookup/ip/
{ipv4_address}
Example: https://troubleshooting.tools/lookup/ip/8.8.4.4
Sharing the Webhook link into a web page or app that support the Open Graph protocol gives the opportunity to share a small excerpt of the results, without that the recipient need to visit the webpage itself.
Examples
The browser integration of troubleshooting.tools allows to use the browser address bar as a search input field, when needed, without visiting the original web page before.
This function is called OpenSearch and works with Apple Safari, Microsoft Edge, Mozilla Firefox and Google Chrome. Before we can start using it, we have to setup our browser for this function. Here an example for Google Chrome:
At the top right, click More and then Settings.
Under "Search engine," click Manage search engines.
To the right of "Other search engines," click Add.
Fill out the text fields as shown below and click Add.
Search engine:
Enter troubleshooting.tools or a name of your choice.
Keyword:
Enter the character "t" or a keyword of your choice, to trigger later the search function.
URL with %s in place of query:
https://troubleshooting.tools/lookup/ip/%s
The setup is complete. You are still able to continue to enter a URL in the address bar or any search terms that trigger a Google search.
The new feature is, if you enter an "t" followed by a space, then you activate the troubleshooting.tools search.
This cause that Google Chrome address bar react like the search field on this website.
To integrate the search bar into a different web page a few line are needed. The look and feel can be adjusted as desired.
<form method="post" action="https://troubleshooting.tools/lookup/ip/">
<input type="text" name="ip" placeholder="">
<input type="submit" value="🔍">
</form>
The API allows to integrate the results of the IP Address Lookup results on a different web page or app. Different formats and level of outputs are available, which can be adjust based on the need.
Format | Level | URL | Output |
---|---|---|---|
Plaintext | 0 | https://api.troubleshooting.tools/lookup/ip/ {ipv4_address} |
IP Address |
JSON | 0 | https://api.troubleshooting.tools/lookup/ip/json/ {ipv4_address} |
IP Address, PTR Record |
JSON | 0 | https://api.troubleshooting.tools/lookup/ip/json/lvl0/ {ipv4_address} |
IP Address, PTR Record |
JSON | 1 | https://api.troubleshooting.tools/lookup/ip/json/lvl1/ {ipv4_address} |
IP Address, PTR Record, Country code/name, Region name, City Name, Latitude, Longitude |
JSON | 2 | https://api.troubleshooting.tools/lookup/ip/json/lvl2/ {ipv4_address} |
IP Address, PTR Record, Country code/name, Region name, City Name, Latitude, Longitude, ISP, RIR, Network Range, CIDR, Name, Handle, Autonomous System (AS) |
https://api.troubleshooting.tools/lookup/ip/
curl -X GET https://api.troubleshooting.tools/lookup/ip/
102.216.69.156
https://api.troubleshooting.tools/lookup/ip/{ipaddress}
curl -X GET https://api.troubleshooting.tools/lookup/ip/8.8.4.4
8.8.4.4
Invalid IP address
Reserved IP address
https://api.troubleshooting.tools/lookup/ip/json/
curl -X GET https://api.troubleshooting.tools/lookup/ip/json/
{
"ip": "102.216.69.156",
"invalid": false,
"reserved": false,
"ptr_record": "No PTR record found"
}
https://api.troubleshooting.tools/lookup/ip/json/{ipaddress}
curl -X GET https://api.troubleshooting.tools/lookup/ip/json/8.8.4.4
{
"ip": "8.8.4.4",
"invalid": false,
"reserved": false,
"ptr_record": "dns.google"
}
{
"ip": "8.8.4.256",
"invalid": true,
"reserved": false
}
{
"ip": "192.168.1.1",
"invalid": false,
"reserved": true,
"additional_context": {
"address_block": "192.168.0.0/16",
"name": "Private-Use",
"rfc": "RFC1918",
"allocation_date": "1996-02"
}
}
https://api.troubleshooting.tools/lookup/ip/json/lvl1/
curl -X GET https://api.troubleshooting.tools/lookup/ip/json/lvl1/
{
"ip": "102.216.69.156",
"invalid": false,
"reserved": false,
"ptr_record": "No PTR record found",
"location_data": {
"ipVersion": 4,
"ipAddress": "102.216.69.156",
"latitude": -1.28333,
"longitude": 36.816669,
"countryName": "Kenya",
"countryCode": "KE",
"timeZone": "+03:00",
"zipCode": "-",
"cityName": "Nairobi",
"regionName": "Nairobi City"
}
}
https://api.troubleshooting.tools/lookup/ip/json/lvl1/{ipaddress}
curl -X GET https://api.troubleshooting.tools/lookup/ip/json/lvl1/8.8.4.4
{
"ip": "8.8.4.4",
"invalid": false,
"reserved": false,
"ptr_record": "dns.google",
"location_data": {
"ipVersion": 4,
"ipAddress": "8.8.4.4",
"latitude": 37.386051,
"longitude": -122.083847,
"countryName": "United States of America",
"countryCode": "US",
"timeZone": "-07:00",
"zipCode": "94035",
"cityName": "Mountain View",
"regionName": "California"
}
}
{
"ip": "8.8.4.256",
"invalid": true,
"reserved": false
}
{
"ip": "192.168.1.1",
"invalid": false,
"reserved": true,
"additional_context": {
"address_block": "192.168.0.0/16",
"name": "Private-Use",
"rfc": "RFC1918",
"allocation_date": "1996-02"
}
}
https://api.troubleshooting.tools/lookup/ip/json/lvl2/
curl -X GET https://api.troubleshooting.tools/lookup/ip/json/lvl2/
{
"ip": "102.216.69.156",
"invalid": false,
"reserved": false,
"ptr_record": "No PTR record found",
"location_data": {
"ipVersion": 4,
"ipAddress": "102.216.69.156",
"latitude": -1.28333,
"longitude": 36.816669,
"countryName": "Kenya",
"countryCode": "KE",
"timeZone": "+03:00",
"zipCode": "-",
"cityName": "Nairobi",
"regionName": "Nairobi City"
},
"registry_data": {
"rir": "AFRINIC",
"netRange": "102.216.68.0 - 102.216.69.255",
"cidr": "102.216.68.0/23",
"name": "not provided",
"handle": "102.216.68.0 - 102.216.69.255",
"parent": "102.216.68.0 - 102.216.71.255",
"netType": "ASSIGNED PA",
"originAS": "not provided",
"lastChanged": "Thu, 23 Nov 2023 06:40:00 GMT",
"remark": "not provided",
"isp": "not provided",
"country": "KE",
"address": "Airtel Networks Kenya Limited, Nairobi, Other",
"source": "https://search.arin.net/rdap/?query=102.216.69.156"
}
}
https://api.troubleshooting.tools/lookup/ip/json/lvl2/{ipaddress}
curl -X GET https://api.troubleshooting.tools/lookup/ip/json/lvl2/8.8.4.4
{
"ip": "8.8.4.4",
"invalid": false,
"reserved": false,
"ptr_record": "dns.google",
"location_data": {
"ipVersion": 4,
"ipAddress": "8.8.4.4",
"latitude": 37.386051,
"longitude": -122.083847,
"countryName": "United States of America",
"countryCode": "US",
"timeZone": "-07:00",
"zipCode": "94035",
"cityName": "Mountain View",
"regionName": "California"
},
"registry_data": {
"rir": "ARIN",
"netRange": "8.8.4.0 - 8.8.4.255",
"cidr": "8.8.4.0/24",
"name": "GOGL",
"handle": "NET-8-8-4-0-2",
"parent": "NET-8-0-0-0-0",
"netType": "DIRECT ALLOCATION",
"originAS": "not provided",
"lastChanged": "Thu, 28 Dec 2023 22:24:56 GMT",
"remark": "not provided",
"isp": "Google LLC",
"country": "not provided",
"address": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
"source": "https://search.arin.net/rdap/?query=8.8.4.4"
}
}
{
"ip": "8.8.4.256",
"invalid": true,
"reserved": false
}
{
"ip": "192.168.1.1",
"invalid": false,
"reserved": true,
"additional_context": {
"address_block": "192.168.0.0/16",
"name": "Private-Use",
"rfc": "RFC1918",
"allocation_date": "1996-02"
}
}
Error handling:
Invalid IP address
- Every input that can't be identified as IPv4 address will trigger an error message.
Reserved IP address
- Address Blocks that matches with the following list will trigger an error message.
HTTP 429: Too Many Requests
- Rate limit: 250 requests per second.
- This limit may be adjusted without prior notice based on server resource demand.
- IPv6 detection is not supported.
- IPv6 lookup support is considered, but not planned.
All mentioned trademarks are the property of their respective owners.