linux how to get my ip address that others can use code example Example 1: get public ip linux curl ifconfig.me Example 2: linux check ip address command ifconfig -a