curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' or just: wget http://ipinfo.io/ip -qO -
curl get server ip
Leave a reply
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' or just: wget http://ipinfo.io/ip -qO -