Friday, December 11, 2015

Check your public IP address using curl or wget

Check your public IP address using curl or wget -

curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' \
       -e 's/<.*$//'  
or

wget http://ipinfo.io/ip -qO -

Courtesy: http://askubuntu.com/questions/95910/command-for-determining-my-public-ip



No comments:

Post a Comment