how to get ip address on mac using terminal code example Example: find my ip mac terminal ipconfig getifaddr en0