There're 2 methods below: 1,curl -s http://whatismyip.org 2,wget http://whatismyip.org cat index.html