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