Tampilkan Alamat 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
ifconfig -a
# show IP address of current linux machine
ip addr show
curl ifconfig.me