linux get public ip of each network interface code example Example: get public ip linux curl ifconfig.me