ipconfig getifaddr en1 code example
Example: how to get my ip address mac terminal
# First launch Terminal in Mac
#Then past code below:
ipconfig getifaddr en0
# First launch Terminal in Mac
#Then past code below:
ipconfig getifaddr en0