how to know your ubuntu server server ip code example Example: ip info on ubuntu $ systemd-resolve --status | grep Current