linux ip a code example
Example 1: show ip address linux
$ hostname -I
Example 2: get ip address linux
curl ifconfig.me
Example 3: new ip linux
Get new ip from DHCP (If not working, check your connection to router)
//Release ip
sudo dhclient -r [Interface name](optional)
//Renew ip
sudo dhclient [Interface name](optional)