show ip address linux

C++
ifconfig -a$ hostname -I 
curl ifconfig.me
Source

Also in C++: