how to get your ip adress mac code example Example 1: find my ip mac terminal ipconfig getifaddr en0 Example 2: ip on mac ifconfig | grep "inet "