Desktop? Can use the Networks GUI in the tray.
Ubuntu uses NetworkManager in 2025.
Refresh IP using NetworkManager:
nmcli connection show- Copy UUID.
nmcli connection down <UUID>nmcli connection up <UUID>
Refresh IP using ip:
ip linkip link set dev <DEVICE> downip link set dev <DEVICE> up
Info
ip anmcli
Find devices on LAN
ip neighborarp -a
Using ip is the standard cross-distro way, but nmcli might be a smoother experience on Ubuntu current year.