Return to Snippet

Revision: 23322
at March 17, 2010 04:46 by berkes

Updated Code
wget --quit -O - | sed -e 's/[^:]*: //' -e 's/<.*$//'

Revision: 23321
at February 4, 2010 05:58 by berkes

Initial Code
wget -O -q - | sed -e 's/[^:]*: //' -e 's/<.*$//'

Initial URL

Initial Description
Use wget and sed to get your public IP adress (instead of firing up firefox and visting Usefull in scripts where you need your public IP adres.

There are probably better ways, maybe even a GNUtool that I missed?

Initial Title
Commandline oneliner to get your public IP adress

Initial Tags

Initial Language