Public IPv4|v6 Address

54.158.200.60

 

Multiple command line HTTP clients are supported, including curl, httpie, GNU Wget and fetch.

ipconfig.io is for sale by sysinfo.io. Click here to visit the domain escrow.

CLI examples:

$ curl ipconfig.io
54.158.200.60

$ http -b ipconfig.io
54.158.200.60

$ wget -qO- ipconfig.io
54.158.200.60

$ fetch -qo- https://ipconfig.io
54.158.200.60

Country lookup:

$ http ipconfig.io/country
United States

City lookup:

$ http ipconfig.io/city
Ashburn

JSON output:

$ http ipconfig.io/json
{ 
    "city": "Ashburn",
    "country": "United States",
    "hostname": "ec2-54-158-200-60.compute-1.amazonaws.com",
    "ip": "54.158.200.60",
    "ip_decimal": 916375612
}

Setting the Accept header to application/json also works.

Plain output:

Always returns the IP address including a trailing newline, regardless of user agent.

$ http ipconfig.io/ip
54.158.200.60

Test firewall ports:

$ http ipconfig.io/port/8080
{
    "ip": "54.158.200.60",
    "port": 8080,
    "reachable": false
}

FAQ

Is using this service from automated scripts/tools permitted?

Yes, as long as the rate limit is respected. 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 response code) or dropped entirely.

Is IPv6 supported?

IPv6 is currently not supported. You are however free to host your own service with IPv6 support, see next question.

Can I run my own service?

Yes, the source code and documentation is available on GitHub