3

What's the shortest command I could use to find out my WAN IP?

Hauke Laging
  • 88,146
  • 18
  • 125
  • 174
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232

1 Answers1

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