在Linux服务器下查看公网IP地址
在接口对接的时候,很多公司需要对方提供公网ip地址来配置对应的IP白名单。那么在Linux环境下怎么查看对应服务器的公网IP呢,具体操作如下
curl ifconfig.me
或
curl cip.cc

如果是window系统,打开浏览器百度下ip

curl ifconfig.me
或
curl cip.cc

如果是window系统,打开浏览器百度下ip
