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