3 ms·
Why do you think something like this needs more "features"? When I'm somewhere other than home and need to know my public IP address for some reason, I just us
by jlgaddis 12y ago
Why do you think something like this needs more "features"?
When I'm somewhere other than home and need to know my public IP address for some reason, I just use "icanhazip" [0] (GitHub: [1]) which I've aliased to make it even easier/quicker, e.g.:
$ alias myip
alias myip='curl http://icanhazip.com'
$ myip
192.0.2.42
It doesn't get much simpler than that -- just spit out the IP address in plain-text and, if needed, I'll massage it however I need to.
[0]: http://icanhazip.com/ http://icanhazip.com/
[1]: https://github.com/major/icanhaz https://github.com/major/icanhaz
- lozf 12y agoI also like and use ipinfo.io in the same way... it adds a little location & ISP info.