how to find ip address mac terminal code example
Example 1: find my ip mac terminal
ipconfig getifaddr en0
Example 2: get your ip address from terminal
for local ip :
hostname -I
for Public ip :
curl icanhazip.com
ipconfig getifaddr en0
for local ip :
hostname -I
for Public ip :
curl icanhazip.com