mac terminal command to get ip address code example Example: find my ip mac terminal ipconfig getifaddr en0