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:
It takes a few seconds until it has figured out your public ip address. You need to have 'curl' installed of course.
There is 1 alternative - vote for the best!
Relies on ifconfig.me functioning. It's about as easy as it gets, and memorable to old geeks too.
This is a convinient way to do it in scripts. You also want to rm the ip.php file afterwards
If you can do better, submit your command here.
You must be signed in to comment.