美文网首页现代前端指南!
Mac 命令行查看自己的公网IP

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

作者: Q14 | 来源:发表于2019-01-17 18:22 被阅读62次

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

相关文章

网友评论

    本文标题:Mac 命令行查看自己的公网IP

    本文链接:https://www.haomeiwen.com/subject/edfwdqtx.html