{{ template "script.html" . }} {{ template "styles.html" . }}

{{ .Host }} — What is my IP address?

{{ .IP }}

The best tool to find your own IP address, and information about it.

{{ if .Sponsor }} {{ end }}

What do we know about this IP address?

{{ if .Country }} {{ end }} {{ if .CountryISO }} {{ end }} {{ if .CountryEU }} {{ end }} {{ if .RegionName }} {{ end }} {{ if .RegionCode }} {{ end }} {{ if .MetroCode }} {{ end }} {{ if .PostalCode }} {{ end }} {{ if .City }} {{ end }} {{ if .Latitude }} {{ end }} {{ if .Longitude }} {{ end }} {{ if .Timezone }} {{ end }} {{ if .ASN }} {{ end }} {{ if .ASNOrg }} {{ end }} {{ if .Hostname }} {{ end }} {{ if .UserAgent }} {{ if .UserAgent.Comment }} {{ end }} {{ if .UserAgent.Comment }} {{ end }} {{ if .UserAgent.RawValue }} {{ end }} {{ end }}
IP address {{ .IP }}
IP address (decimal) {{ .IPDecimal }}
Country {{ .Country }}
Country (ISO code) {{ .CountryISO }}
In EU? {{ .CountryEU }}
Region {{ .RegionName }}
Region code {{ .RegionCode }}
Metro code {{ .MetroCode }}
Postal code {{ .PostalCode }}
City {{ .City }}
Latitude {{ .Latitude }}
Longitude {{ .Longitude }}
Timezone {{ .Timezone }}
ASN {{ .ASN }}
ASN (organization) {{ .ASNOrg }}
Hostname {{ .Hostname }}
User agent {{ .UserAgent.Product }}/{{ .UserAgent.Version }}
User agent: Comment {{ .UserAgent.Comment }}
User agent: Raw {{ .UserAgent.RawValue }}
{{ if .Country }}

This information is provided from the GeoLite2 database created by MaxMind, available from www.maxmind.com

{{ end }} {{ if .Latitude }}

Map

{{ end }}

How do I get this programmatically?

With the widget below you can build your query, and see what the result will look like.

FAQ

How do I force IPv4 or IPv6 lookup?

As of 2018-07-25 it's no longer possible to force protocol using the v4 and v6 subdomains. IPv4 or IPv6 still can be forced by passing the appropiate flag to your client, e.g curl -4 or curl -6.

Can I force getting JSON?

Setting the Accept: application/json header works as expected.

Is automated use of this service permitted?

Yes, as long as the rate limit is respected. The rate limit is in place to ensure a fair service for all.

Please limit automated requests to 1 request per minute. No guarantee is made for requests that exceed this limit. They may be rate-limited, with a 429 status code, or dropped entirely.

Can I run my own service?

Yes, the source code and documentation is available on GitHub.