Mac 命令行查看自己的公网IP

5,672 阅读1分钟
原文链接: www.jianshu.com
登录 注册写文章 首页下载APP

Mac 命令行查看自己的公网IP

Q14关注赞赏支持

Mac 命令行查看自己的公网IP

Mac 查看本机公网IP 命令

curl ifconfig.me  

如果想更好看一点

curl ipinfo.io/json

还可以用wget

wget http://ipecho.net/plain -O - -q ; echo
wget http://observebox.com/ip -O - -q ; echo

查看本机内网IP

ifconfig
评论0 赞3 3赞4赞 赞赏