How to Find Your IP Address on Mac
Find your Mac's local IP address in System Settings or Terminal, and your public IP address with one command.
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.
More Mac how-tos
- How to AirDrop from iPhone to Mac
- How to Back Up a Mac with Time Machine
- How to Change the Default App for a File Type on Mac
- How to Change the Default Browser on Mac
- How to Check Memory Usage on Mac
- How to Check Which macOS Version You Have
- How to Connect AirPods to a Mac
- How to Flush the DNS Cache on Mac
- How to Force Quit an App on Mac
- How to Free Up Storage on Mac
- How to Generate an SSH Key on Mac
- How to Record Your Screen on Mac
- How to Rename Multiple Files at Once on Mac
- How to Show Battery Percentage on Mac
- How to Show Hidden Files on Mac
- How to Take a Screenshot of Part of the Screen on Mac
- How to Uninstall an App on Mac
- How to Use Split Screen on Mac
- How to Zip and Unzip Files on Mac
- How to Check If a Port Is in Use on Mac