commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Get your ip address, hostname, ASN and geolocation information. If you want just one field as a text response you can also get that,eg curl ipinfo.io/ip
There are 7 alternatives - vote for the best!
Short command, easy to remember
Curl is not installed by default on many common distros anymore. wget always is :)
wget -qO- ifconfig.me/ip
I dont have curl or links installed, so I use wget with write file as standard out.
If you can do better, submit your command here.
You must be signed in to comment.