Ipconfig getifaddr en1
- The system will return the IP address for a wired Ethernet connection.ipconfig getifaddr en0
- This will return the IP address of your wireless connection.Curl ifconfig.me
- This command returns the public IP address of the Mac Terminal.