how to get the ip address of a computer in command line in linux code example Example 1: linux check ip address command ifconfig -a Example 2: how to see ip in linux curl ifconfig.me