DEV Community

Elijah Lynn
Elijah Lynn

Posted on

2 1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️