If you are behind a router or gateway and you need to get your public IP then you can use dyndns.org with this wget line:
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
If you are behind a router or gateway and you need to get your public IP then you can use dyndns.org with this wget line:
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'