linux 获取外网地址

There're 2 methods below:


1,curl -s http://whatismyip.org


2,wget http://whatismyip.org 

  cat index.html

你可能感兴趣的:(linux)