how to find ip adress using terminal code example
Example 1: how to get my ip address mac terminal
# First launch Terminal in Mac
#Then past code below:
ipconfig getifaddr en0
Example 2: get your ip address from terminal
for local ip :
hostname -I
for Public ip :
curl icanhazip.com