DEV Community

Elijah Lynn
Elijah Lynn

Posted on

Fetch (curl) your Public IP address from CLI with ifconfig.co/ip

New tool to fetch your Public IP from the CLI.

curl ifconfig.co/ip (same as curl ifconfig.co).

There are some other features too:
curl ifconfig.co/json returns City, State, ISP etc.

image

curl ifconfig.co/city
image

curl ifconfig.co/country
image

See options at https://ifconfig.co.

Top comments (0)