DEV Community

Sawit M.
Sawit M.

Posted on

CLI to get your current IP address

curl ifconfig.co
curl ifconfig.co/json
curl ifconfig.me
curl ifconfig.io
curl wtfismyip.com/text
curl wtfismyip.com/json
curl icanhazip.com
curl icanhazip.com
curl ipinfo.io
curl ipinfo.io/ip
curl checkip.amazonaws.com
curl api.ipify.org
curl ipecho.net/plain
curl whatismyip.akamai.com
curl ident.me

dig +short myip.opendns.com @resolver1.opendns.com
Enter fullscreen mode Exit fullscreen mode

REF: https://www.reddit.com/r/devops/comments/blh7kv/url_to_get_just_an_ip_with_no_garbage/

Oldest comments (0)