check ip address terminal code example
Example 1: find my ip mac terminal
ipconfig getifaddr en0
Example 2: how to get my ip address mac terminal
# First launch Terminal in Mac
#Then past code below:
ipconfig getifaddr en0
Example 3: linux check ip address command
ifconfig -a
Example 4: IP adress terminal
# when you're on your terminal Window :
ipconfig
# on macOS :
ifconfig | grep "inet" | grep -v 127.0.0.1
# on Linux :
hostname -I
Example 5: get your ip address from terminal
for local ip :
hostname -I
for Public ip :
curl icanhazip.com
Example 6: how to see ip in linux
curl ifconfig.me