Afficher l'adresse IP Linux
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
Snippets
#private ip
hostname -I
or
ifconfig
or
ip addr show
#public ip
curl ifconfig.me
ip addr
ip addr show eth0
ifconfig -a
ifconfig eth0
ip route
ip route show dev eth0
curl ifconfig.me