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