Linux 查公网出口IP

1、curl http://members.3322.org/dyndns/getip

2、wget http://members.3322.org/dyndns/getip
cat getip

 

3、[fatt@abc-localhost-Furn-A ~]$ curl ipinfo.io
{
"ip": "58.214.888.888",
"hostname": "No Hostname",
"city": "Nanjing",
"region": "Jiangsu",
"country": "CN",
"loc": "32.0617,778.888888",
"org": "AS090909 No.31,Jin-rong Street"

posted @ 2016-12-05 10:20  Fatt  阅读(500)  评论(0编辑  收藏  举报