linux mendapatkan host ip lokal

hostname -I | awk '{print $1}'

ifconfig -a.
ip addr (ip a)
hostname -I | awk '{print $1}'
ip route get 1.2. ...
(Fedora) Wifi-Settings→ click the setting icon next to the Wifi name that you are connected to → Ipv4 and Ipv6 both can be seen.
nmcli -p device show.
DreamCoder