Answers for "how to get host ip address in linux"

23

display ip address linux

#private ip
hostname -I
or
ifconfig
or
ip addr show

#public ip
curl ifconfig.me
Posted by: Guest on December-02-2020
18

show ip address linux

$ hostname -I
Posted by: Guest on August-22-2020
0

linux get host ip local

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.
Posted by: Guest on April-27-2022

Code answers related to "how to get host ip address in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language