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:

Brians Suarez said...

Nice!

--j aneiros said...

It is, eh?

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