Public IPv4|v6 Address

3.80.5.103

 

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

CLI examples:

$ curl ipconfig.io
3.80.5.103

$ http -b ipconfig.io
3.80.5.103

$ wget -qO- ipconfig.io
3.80.5.103

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

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-3-80-5-103.compute-1.amazonaws.com",
    "ip": "3.80.5.103",
    "ip_decimal": 55575911
}

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
3.80.5.103

Test firewall ports:

$ http ipconfig.io/port/8080
{
    "ip": "3.80.5.103",
    "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 per second (1 req/s). No guarantee is made for requests that exceed this limit. They may be rate-limited (429 or 1015 response code) or dropped entirely.

Can I run my own service?

Yes, the source code and documentation is available on GitHub