~ curl ip.gs Current IP / 当前 IP: 101.69.200.10 ISP / 运营商: ChinaUnicom City / 城市: Jiaxing Zhejiang Country / 国家: China IP.GS is now IP.SB, please visit https://ip.sb/ for more information. / IP.GS 已更改为 IP.SB ,请访问 https://ip.sb/ 获取更详细 IP 信息! Please join Telegram group https://t.me/sbfans if you have any issues. / 如有问题,请加入 Telegram 群 https://t.me/sbfans
/\_/\ =( °w° )= ) ( // (__ __)//
~
当然了你要是只想看ip就输入
1
curl ip.sb
就直接显示你在公网上的ip
注:ifconfig是查看本机在局域网内的ip,不是公网ip
你要是装了istat menus直接点击顶栏的网络部分就可以查看局域网ip和公网ip
使用alias自定义命令
像这样(我用的zsh所以是在.zshrc文件中写入)
1 2 3
alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1086" alias setproxyhttp="export ALL_PROXY=http://127.0.0.1:1087" alias unsetproxy="unset ALL_PROXY"