February 4, 2018
Linux: 命令行获取公共 IP 和 私有IP, How To Find My Public IP Address, Determine Your Private and Public IP Addresses, From Command Line On a Linux
1. 命令行获取私有IP Use dig command for determining my public IP address:
打开 Terminal application.
输入以下命令行:Type the following dig (domain information groper) command on a Linux, OS X, or Unix-like operating systems to see your own public IP address assigned by the ISP:
dig +short myip.opendns.com @resolver1.opendns.com
或者
dig TXT +short o-o.myaddr.l… Read More