How to Use the Terminal – ifconfig
Finding My IP Using the MacOS Terminal“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.Jul 22, 2021