how to find a server with ip address linux code example Example 1: get public ip linux curl ifconfig.me Example 2: show ip address linux $ hostname -I