Linux下查询本机的出口IP

curl -s 'http://checkip.dyndns.org' | sed 's/.*Current IP Address: \([0-9\.]*\).*/\1/g'

你可能感兴趣的:(Linux下查询本机的出口IP)