$ hostname -I
ifconfig -a
#private ip hostname -I or ifconfig or ip addr show #public ip curl ifconfig.me
curl ifconfig.me