How to Find Your IP Address on Mac
macOS Sequoia and Tahoe; older versions noted where they differ · Last checked · Suggest an edit
https://instructions.wiki/mac/find-your-ip-address-on-mac
There are two IP addresses. The local one identifies your Mac on your home or office network (usually starts with 192.168. or 10.). The public one is what websites see, and it belongs to your router, not your Mac.
Find your local IP in System Settings
Open System Settings, then click Wi-Fi (or Network if you use Ethernet). Click Details next to the network you are connected to. Your IP address is listed on the first screen, under TCP/IP on older versions.
Find your local IP in Terminal
Open Terminal and run:
ipconfig getifaddr en0
en0 is Wi-Fi on most Macs. If nothing prints, you are probably on Ethernet; try en1, or list every interface with:
ifconfig | grep "inet "
The line that is not 127.0.0.1 is your local address.
Find your public IP
In Terminal:
curl ifconfig.me
This asks an outside server what address your request came from, which is your public IP. You can get the same answer by searching "what is my IP" in any search engine.
Local vs public. Use the local IP for things on your own network, like connecting to a dev server from your phone or setting up a printer. Use the public IP for anything remote, like allowlisting yourself on a firewall.