how to know my ubuntu 18.04 server ip code example
Example 1: ip address ubuntu
ip address show
Example 2: ubuntu 18.04 get public ip address
dig +short myip.opendns.com @resolver1.opendns.com
ip address show
dig +short myip.opendns.com @resolver1.opendns.com