44.222.134.250

What is my IP address?
Retrieve IP address information programmatically

Basic Usage

  • curl
  • wget
  • powershell
            $  curl ipconfig.io
            $  wget -qO- ipconfig.io
            $  Invoke-RestMethod -uri https://ipconfig.io/ip

          

How do I force IPv4 or IPv6 lookup?

IPv4 or IPv6 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. While we've increased server capacity and implemented load balancing, there is rate limiting is in place to ensure a fair service for all.

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

Additional Query Examples

  • country
  • city
  • asn
  • port
  • json
    
            $  curl ipconfig.io/country
United States
$ curl https://ipconfig.io/city
Ashburn
$ curl https://ipconfig.io/asn
AS14618
$ curl https://ipconfig.io/port/80

$ curl https://ipconfig.io/json