get my ip address linux code example Example 1: get public ip linux Click to copycurl ifconfig.me Example 2: linux check ip address command Click to copyifconfig -a