Tuesday, January 13, 2015

Checking current IP from the command line in Linux

wget -q -O - checkip.dyndns.org | sed -e 's/[^0-9.]//g'

2 comments:

br.i4.n5 said...

Nice!

J. Ernesto Aneiros said...

It is, eh?

Check this one I wrote today: http://www.j4neiros.us/2015/01/what-is-my-ip-using-javascript.html