If you are looking into ipconfig mac, this guide explains the essentials in plain language and points you to the most useful next steps.
If you type ipconfig on a Mac expecting the Windows-style readout of every adapter, you will be disappointed. macOS does include a command called ipconfig, but it is a small helper that answers one question at a time. The line most people want is ipconfig getifaddr en0, which prints your local IPv4 address when you are on Wi-Fi. For anything broader, ifconfig and networksetup do the job that ipconfig /all does on Windows.
Key takeaways
- On a Mac,
ipconfig getifaddr en0shows your local IP address on Wi-Fi; tryen1if nothing prints. networksetup -getinfo Wi-Figives the IP address, subnet mask, router and hardware address in one block.ifconfigis the closest match to Windowsipconfig /all, and System Settings shows the same details without Terminal.- Your local address and the public address that websites see are different things.
The quick answer: find your IP address
Open Terminal by pressing Command-Space, typing Terminal and hitting Return. You can also find it in Applications, inside the Utilities folder. Then try these in turn:
ipconfig getifaddr en0prints the IPv4 address of the first network interface. On most recent MacBooks that is Wi-Fi.ipconfig getifaddr en1is the next thing to try if the first command returns a blank line. Desktops, Mac minis and laptops with a USB or Thunderbolt Ethernet adapter often number their interfaces differently.networksetup -getinfo Wi-Fiprints the address, subnet mask, router and hardware address together. SwapWi-FiforEthernetif you are plugged in.
A blank result is not an error. It simply means that interface has no address because it is not connected.
Why ipconfig works differently on a Mac
Windows bundled most of its network reporting into a single tool. macOS, built on a Unix foundation, spread the same jobs over several smaller ones. The Mac version of ipconfig is mainly used by system scripts to read specific values, such as the lease a DHCP server handed out. It has no friendly summary mode, so typing ipconfig /all just returns a usage message. That message is the reason so many people end up searching for an ipconfig Mac equivalent in the first place.
Windows commands and their Mac equivalents
| What you want | On Windows | On a Mac |
|---|---|---|
| Local IP address | ipconfig | ipconfig getifaddr en0 |
| Every adapter in detail | ipconfig /all | ifconfig |
| Router (default gateway) | ipconfig | networksetup -getinfo Wi-Fi |
| Renew the address | ipconfig /renew | System Settings, Network, Details, TCP/IP, Renew DHCP Lease |
| Clear the DNS cache | ipconfig /flushdns | sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
| See which DNS servers are used | ipconfig /all | scutil –dns |
The DNS flush command needs your administrator password, and Terminal will not show characters as you type it. That is normal. Type it blind and press Return.
Reading the output of ifconfig
Run ifconfig with nothing after it and you get a long wall of text: the loopback interface, Wi-Fi, Bluetooth bridges, virtual adapters left behind by VPN apps and more. Do not try to read it all. Instead:
- Run
ifconfig en0to see only the Wi-Fi interface. - Find the line that begins with
inet. The number after it is your IPv4 address. - The
etherline holds the hardware (MAC) address. Note that recent macOS versions may show a rotating private address for Wi-Fi networks, so it may differ from the one printed on the machine. - Lines beginning
inet6are IPv6 addresses. Anything starting withfe80is link-local and only meaningful inside your own network.
If you only want a quick filter, ifconfig en0 | grep "inet " trims the output down to the IPv4 line.
The no-Terminal route: System Settings
You never have to touch the command line. On current macOS, open System Settings, choose Wi-Fi (or Ethernet), click Details beside the network you are connected to, and open the TCP/IP tab. You will see the IP address, subnet mask and router, with a Renew DHCP Lease button underneath. The DNS and Hardware tabs sit alongside it. On older versions the same information lives under System Preferences, Network, Advanced. Apple’s own support site, at support.apple.com, keeps the current menu names for each macOS release.
Local address versus public address
The address you get from the commands above is a private, local one, usually starting with 192.168 or 10. Every device at home has its own. The address the wider internet sees belongs to your router and is shared by everything behind it. To check it, run curl ifconfig.me in Terminal or search for “what is my IP” in a browser. Neither is a stand-in for ipconfig on a Mac, but people frequently want one when they really need the other, so decide which you are after before you start.
This distinction matters in practice. If you are setting up screen mirroring or casting, as in our guide to casting to a Roku TV from a MacBook, both devices must be on the same local network, and comparing local addresses is a quick way to confirm that. The general idea behind the older command is also explained on Wikipedia’s page for ifconfig.
Troubleshooting with a few extra commands
Once you know your addresses, these help when the connection misbehaves:
ping 8.8.8.8tests basic connectivity to the internet. Press Control-C to stop it.pingfollowed by your router’s address tests the link to your own network. If this fails but Wi-Fi shows connected, the problem is local.netstat -rnlists the routing table, including the default gateway.scutil --dnsshows which DNS servers the Mac is actually using, which is handy when websites will not load by name but pinging a number works.networksetup -listallhardwareportslists every network port with its device name, so you can see which one is en0 and which is en1.
If websites fail to load but pinging 8.8.8.8 works, the fault is nearly always DNS. Flush the cache with the command in the table, or set different DNS servers under the DNS tab in your network details.
Frequently asked questions
Is there really an ipconfig command on a Mac?
Yes, but it is a small utility that reports specific values, such as the address from getifaddr. It has no summary mode and no /all switch like the Windows version.
Why does ipconfig getifaddr en0 return nothing?
That interface probably has no connection. Try en1, check which adapter is active in System Settings, or run ifconfig and look for the interface that has an inet line.
How do I renew my IP address on a Mac?
Go to System Settings, open your network, click Details, choose TCP/IP and press Renew DHCP Lease. Turning Wi-Fi off and on again usually has the same effect.
What replaces ipconfig /all on macOS?
The nearest match is ifconfig, combined with networksetup -getinfo for the router and scutil --dns for DNS servers. Together they cover what ipconfig /all prints on Windows.
Can I find my IP address without Terminal?
Yes. Open System Settings, pick your Wi-Fi or Ethernet connection, click Details and select the TCP/IP tab. The address, subnet mask and router are listed there.
Conclusion
The short version: forget ipconfig /all, and use ipconfig getifaddr en0 for a quick address, networksetup -getinfo Wi-Fi for the fuller picture and ifconfig when you need every detail. If a command feels like too much, System Settings shows the same numbers in a couple of clicks.
Key takeaways about ipconfig mac
Here is a short summary of ipconfig mac so you can find the main points quickly.
- If you type ipconfig on a Mac expecting the Windows-style readout of every adapter, you will be disappointed.
- Open Terminal by pressing Command-Space, typing Terminal and hitting Return.
- Windows bundled most of its network reporting into a single tool.
- The DNS flush command needs your administrator password, and Terminal will not show characters as you type it.
If you only remember one thing about ipconfig mac, make it the practical steps covered in this guide.
Check official sources before acting on anything related to ipconfig mac, because details can change over time.
Questions about ipconfig mac are common, so it helps to compare more than one trustworthy source.
Use this page as a starting point for ipconfig mac and come back to it when your situation changes.
Good decisions about ipconfig mac come from checking the facts, comparing your options and taking your time.
Save this guide to ipconfig mac so you can find it again whenever you need a quick reminder.
Related reading:
- Can I Reheat Risotto? Safe Ways to Do It (UK Guide)
- Semicircle Formula: Area, Perimeter and Arc Length Explained
For general background, you can look up ipconfig mac on Wikipedia.






