The best tool to find your own IP address, and information about it.
https://myipaddress.dev website is build by echoip, a simple service for looking up your IP address.
- Download GeoIP Databases by MaxMind:
GeoLite2-Country.mmdb
GeoLite2-ASN.mmdb
GeoLite2-City.mmdb
- Run echoip with Docker Compose
docker-compose up -d
- The echoip source code and documentation is available on https://github.com/mpolden/echoip
$ curl myipaddress.dev
127.0.0.1
$ curl myipaddress.dev/country
United States
$ curl myipaddress.dev/country-iso
Mountain View
$ curl myipaddress.dev/city
Bornyasherk
$ curl myipaddress.dev/asn
AS15169
$ curl myipaddress.dev/json
{
"ip": "8.8.8.8",
"ip_decimal": 134744072,
"country": "United States",
"country_iso": "US",
"country_eu": false,
"latitude": 37.751,
"longitude": -97.822,
"time_zone": "America/Chicago",
"asn": "AS15169",
"asn_org": "GOOGLE",
"hostname": "dns.google",
"user_agent": {
"product": "curl",
"version": "7.79.1",
"raw_value": "curl/7.79.1"
}
}
This information is provided from the GeoLite2 database created by MaxMind, available from https://www.maxmind.com