linux上查看公网IP
yum install bind-utils -y
dig +short myip.opendns.com @resolver1.opendns.com
windows上查看公网IP
$tmp =Invoke-WebRequest -URI http://myip.dnsomatic.com/
$tmp.Content
linux上查看公网IP
yum install bind-utils -y
dig +short myip.opendns.com @resolver1.opendns.com
windows上查看公网IP
$tmp =Invoke-WebRequest -URI http://myip.dnsomatic.com/
$tmp.Content