What's the shortest command I could use to find out my WAN IP?
Asked
Active
Viewed 3,584 times
1 Answers
4
I found:
$ curl ifconfig.me
73.4.164.110
So of course I made an alias
$ alias myip='curl ifconfig.me'
$
$ myip
73.4.164.110
Michael Durrant
- 41,213
- 69
- 165
- 232
-
2[How can I get my external IP address](http://unix.stackexchange.com/q/22615) so `curl ifcfg.me` is even shorter. – don_crissti Jan 09 '15 at 01:30