ubuntu server get ip address from whatsmyip code example Example: ip info on ubuntu $ systemd-resolve --status | grep Current