Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
Cupertino desk12 min

How to Run ipconfig on Mac

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

macOS does not use the Windows ipconfig command in the same way, so typing it into Terminal may not give you the network you expect. Instead, Mac users rely on commands such as ifconfig, ipconfig getifaddr, networksetup, and route to view IP addresses, DNS servers, routers, and interface details.

The closest Mac equivalent depends on what you want to check: your local IP address, Wi-Fi or Ethernet interface information, DNS configuration, default gateway, or public IP address. These details are available from Terminal, but macOS also provides graphical options in System Settings for users who prefer not to use commands.

As an Amazon Associate I earn from qualifying purchases.

What Is the Mac Equivalent of ipconfig?

macOS does not use the Windows ipconfig command in the same all-in-one way. On Windows, ipconfig is the standard command for quickly showing IPv4 and IPv6 addresses, default gateway, DNS-related details, and DHCP information. On a Mac, similar information is split across several commands, depending on exactly what you want to see.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The closest general-purpose equivalent is ifconfig. It lists network interfaces such as Wi-Fi, Ethernet, loopback, VPN adapters, and virtual interfaces, along with details like IP addresses, MAC addresses, interface status, and packet statistics. If you are trying to inspect network adapter details in Terminal, ifconfig is usually the first Mac command to try.

#1 Best Overall

macOS also includes a command named ipconfig, but it is not used the same way as the Windows version. Instead of printing a full network configuration report by default, the Mac version is commonly used with subcommands such as getifaddr to return a specific address for a specific interface. For example, Wi-Fi is often en0 on many Macs, so ipconfig getifaddr en0 may show the Mac’s current Wi-Fi IP address.

Common Windows ipconfig tasks and Mac equivalents

Task Windows command macOS command or location
View all interface details ipconfig /all ifconfig
Show the current Wi-Fi IP address ipconfig ipconfig getifaddr en0
Find the default gateway or router ipconfig route -n get default
View DNS servers ipconfig /all scutil --dns
View network settings without Terminal Settings or Control Panel System Settings > Network

In practice, there is no single perfect replacement for ipconfig /all on macOS. Use ifconfig for interface-level information, ipconfig getifaddr for a quick local IP address, route for the router address, and scutil --dns for DNS configuration. If you prefer a graphical view, macOS System Settings also shows the active network connection, IP address, router, DNS servers, and hardware details in a more guided format.

How to Open Terminal on macOS

To run Mac networking commands such as ifconfig, ipconfig getifaddr, netstat, or scutil –dns, you need to open the Terminal app. Terminal is macOS’s command-line interface, similar in purpose to Command Prompt or PowerShell on Windows, but it uses Unix-style commands. You do not need to install anything extra; Terminal is included with every Mac.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The fastest way to open Terminal is with Spotlight Search:

  1. Press Command + Space on your keyboard.
  2. Type Terminal.
  3. Press Return when the Terminal app appears.

You can also open Terminal from Finder if you prefer browsing through apps manually:

  1. Click the Finder icon in the Dock.
  2. Select Applications in the sidebar.
  3. Open the Utilities folder.
  4. Double-click Terminal.

Another option is to use Launchpad. Click the Launchpad icon in the Dock, search for Terminal, then click the app icon. If you use Terminal often, you can keep it in the Dock by opening it, right-clicking the Terminal icon, then choosing Options > Keep in Dock.

When Terminal opens, you will see a window with a command prompt showing your Mac username and computer name. You can type commands at the prompt and press Return to run them. For example, later sections use commands such as ifconfig to list network interfaces and ipconfig getifaddr en0 to show the IP address for a specific interface. Most viewing commands do not change your network settings, but commands entered in Terminal run exactly as typed, so it is best to copy them carefully.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

If Terminal asks for permission to access files or folders, that is usually related to macOS privacy controls rather than the network command itself. Basic network lookups normally work without administrator access. If a command requires elevated privileges, macOS may ask for your password after you use sudo, but the common IP address and DNS lookup commands in this guide generally do not need it.

Use ifconfig to View Network Interface Details

The closest macOS command to the Windows ipconfig output is ifconfig. It shows detailed information about your Mac’s network interfaces, including Wi-Fi, Ethernet, loopback, VPN adapters, virtual interfaces, IPv4 addresses, IPv6 addresses, MAC addresses, and interface status. In Terminal, run:

ifconfig

The output can be long because macOS lists every network interface, not just the one currently connected to the internet. You may see interface names such as lo0, en0, en1, awdl0, utun0, and bridge0. The lo0 interface is the local loopback interface, while en0 or en1 is commonly used for Wi-Fi or Ethernet, depending on your Mac model and configuration. VPN and privacy-related connections often appear as utun interfaces.

How to read common ifconfig fields

  • status: active means the interface is currently connected.
  • status: inactive means the interface exists but is not connected.
  • inet shows an IPv4 address, such as 192.168.1.25.
  • inet6 shows an IPv6 address.
  • ether shows the hardware MAC address for that interface.
  • netmask shows the subnet mask in hexadecimal form.
  • broadcast shows the broadcast address for the local network.

For example, if your Wi-Fi interface is en0, you can narrow the output to that interface only:

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ifconfig en0

Look for the line that begins with inet. That value is your Mac’s local IPv4 address on the current network. A typical line might look like inet 192.168.1.25 netmask 0xffffff00 broadcast 192.168.1.255. In that example, 192.168.1.25 is the Mac’s private IP address assigned by the router. If you do not see an inet line on the interface you checked, that interface may not be the one currently in use, or it may not have an IPv4 address assigned.

Find the active Wi-Fi or Ethernet interface

If you are not sure whether your Mac uses en0 or en1 for Wi-Fi, you can ask macOS to list hardware ports and device names:

networksetup -listallhardwareports

This command prints entries such as Hardware Port: Wi-Fi followed by Device: en0. Once you know the device name, use it with ifconfig, such as ifconfig en0 for Wi-Fi or ifconfig en1 for Ethernet. This is often easier than scanning the full ifconfig output, especially on Macs with VPN clients, virtualization tools, or mulle network services installed.

Rank #2
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
  • 256 GB SSD of storage.
  • Multitasking is easy with 16GB of RAM
  • Equipped with a blazing fast Core i5 2.00 GHz processor.

You can also filter the output to show only IPv4 address lines by using:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

ifconfig | grep “inet “

This shorter view is useful when you only want assigned IPv4 addresses. Keep in mind that it may include 127.0.0.1, which belongs to the loopback interface and is not your network address. For the address used on your local Wi-Fi or Ethernet network, look for an address commonly starting with 192.168., 10., or 172.16 through 172.31.

Use ipconfig getifaddr to Find Your Mac’s IP Address

macOS does include a command named ipconfig, but it is not the same tool as Windows ipconfig. On a Mac, ipconfig is mainly used to query DHCP-related information for a specific network interface. The most useful form for everyday troubleshooting is ipconfig getifaddr, which prints the IPv4 address assigned to one interface, without the extra detail shown by ifconfig.

To find your Mac’s local IP address, first identify the interface you are using. On most Macs, Wi-Fi is en0. On some models, USB Ethernet adapters, Thunderbolt Ethernet, VPNs, or additional network services may appear as en1, en2, or another name. If you already used ifconfig in the previous step, look for the active interface that contains status: active and an inet value.

Find the IP address for Wi-Fi

Open Terminal and run this command:

ipconfig getifaddr en0

If your Mac is connected through Wi-Fi and en0 is the correct interface, Terminal will return a single address such as 192.168.1.42 or 10.0.0.23. This is your Mac’s private IPv4 address on the local network. It is the address other devices on the same home, office, or school network may use to reach your Mac, depending on firewall and sharing settings.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Try another interface if nothing appears

If the command returns no output, the interface may not have an IPv4 address, or your active connection may be using a different interface name. Try checking another common interface:

  • ipconfig getifaddr en1
  • ipconfig getifaddr en2
  • ipconfig getifaddr bridge0

You can also run ifconfig again and look for the interface with an inet line. For example, if ifconfig shows inet 192.168.0.15 under en1, then ipconfig getifaddr en1 should print that same IPv4 address in a cleaner one-line format.

Common interface names on macOS

Interface Typical use
en0 Usually Wi-Fi on modern Macs
en1 Sometimes Ethernet, USB adapter, or another network service
en2 Additional adapter, dock, or secondary network interface
bridge0 Virtual bridge used by some sharing or virtualization features

The address returned by ipconfig getifaddr is not your public internet address. It is your local network address, assigned by your router or another DHCP server. If you disconnect from Wi-Fi, switch networks, renew your DHCP lease, or connect through a different adapter, this address can change. For quick checks, though, ipconfig getifaddr en0 is one of the fastest Mac Terminal commands for finding the IP address most users are looking for.

Find Your Router, DNS, and Public IP Address

After you know your Mac’s local IP address, the next useful details are the default router, DNS servers, and public IP address. These are different from the private address assigned to your Mac on your home, office, or school network. Your router is usually the gateway that sends traffic outside your local network, DNS servers translate domain names into IP addresses, and your public IP address is the address websites see when your traffic reaches the internet.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Find the Default Router on macOS

To find the router, also called the default gateway, open Terminal and run:

netstat -nr | grep default

The output normally shows a line beginning with default, followed by an IP address such as 192.168.1.1, 192.168.0.1, or 10.0.0.1. That address is usually your router. If you see more than one default route, look at the interface column. For Wi-Fi, the interface is commonly en0; for Ethernet, it may be en1, en2, or another interface depending on your Mac and adapters.

Find DNS Servers from Terminal

For DNS information, the most direct macOS command is:

scutil –dns

This prints the DNS configuration currently being used by macOS. Look for entries labeled nameserver. You may see local router addresses, such as 192.168.1.1, or public DNS servers, such as 8.8.8.8, 1.1.1.1, or addresses supplied by your internet provider, VPN, or workplace network. If you only want a shorter view of DNS servers for a specific service, you can also use:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

networksetup -getdnsservers Wi-Fi

If your connection is Ethernet, replace Wi-Fi with the exact network service name, such as Ethernet. To list the available service names on your Mac, run networksetup -listallnetworkservices.

Rank #3
15.6 Inch Win 11 Laptop Computer, N4020, 4GB DDR4 RAM, 128GB Storage
  • WINDOWS 11 | STABLE PERFORMANCE: Powered by Intel Celeron N4020 processor and Windows 11 system, this laptop delivers stable performance for everyday computing tasks. It supports web browsing, online learning, document editing, email communication, and basic office work with optimized power efficiency, providing a practical and reliable experience for essential daily use for daily use.
  • 15.6” FHD IPS DISPLAY: Features a 15.6-inch Full HD IPS display with narrow bezels, offering wider viewing angles and clearer image details compared to standard panels. The improved screen-to-body ratio enhances visual experience for study, reading, document work, and video playback, making it suitable for both productivity and entertainment use.
  • 4GB DDR4 + 128GB eMMC STORAGE: Equipped with 4GB DDR4 memory and 128GB eMMC storage for everyday basics such as browsing, documents, email, and online learning platforms. The built-in TF card slot supports storage expansion up to 1TB, giving you more flexibility for files, photos, videos, and daily documents. TF card not included.
  • CONNECTIVITY & PORTS: Includes 1× TF card slot, 2× USB 3.2 Gen1 ports, and 2× full-featured Type-C ports (USB 3.2 Gen1). The Type-C ports support data transfer, charging, and video output, enabling flexible connection with external devices such as monitors, storage, and peripherals for daily work and study use.
  • LIGHTWEIGHT DESIGN | ONLINE COMMUNICATION: Designed with a slim, portable profile, this laptop is easy to carry for school, commuting, and travel. A built-in 1MP front camera supports online classes, video meetings, remote communication, and everyday conferencing. The 3300mAh battery works with the low-power system design to support practical daily use, while thermal optimization helps maintain quieter operation during extended tasks.

Find Your Public IP Address

Your public IP address is not usually shown by ifconfig or ipconfig getifaddr, because those commands display addresses assigned to your Mac’s network interfaces. On most home and office networks, your Mac sits behind a router using NAT, so your Mac has a private local IP address while the router has the public-facing address. To check the public IP from Terminal, use a web-based lookup service:

curl ifconfig.me

You can also try:

  • curl https://checkip.amazonaws.com
  • curl https://icanhazip.com
  • dig +short myip.opendns.com @resolver1.opendns.com

If you are connected to a VPN, the public IP shown by these commands may be the VPN server’s address rather than your internet provider’s address. If you are using iCloud Private Relay, a corporate proxy, or certain security tools, the result may also differ from your router’s WAN address. For a quick browser-based check, search the web for what is my IP or visit a trusted IP lookup site.

Useful Command Reference

Detail Terminal command
Default router netstat -nr | grep default
DNS configuration scutil –dns
DNS servers for Wi-Fi networksetup -getdnsservers Wi-Fi
Public IP address curl ifconfig.me
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

View Network Information in macOS System Settings

If you prefer not to use Terminal, macOS also shows most of the same network information in System Settings. This is useful when you want to confirm your Wi-Fi IP address, check which network you are connected to, view router details, or inspect DNS configuration without typing commands. The exact labels can vary slightly depending on your macOS version, but the path is similar on recent releases such as Ventura, Sonoma, and Sequoia.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Click the Apple menu in the top-left corner of the screen.
  2. Select System Settings.
  3. Choose Network in the sidebar.
  4. Select your active connection, such as Wi-Fi or Ethernet.
  5. Click Details next to the connected network or service.

For a Wi-Fi connection, the main Network screen usually shows the network name and connection status. Opening Details gives you more technical information. Under TCP/IP, you can typically see your Mac’s local IP address, subnet mask, router address, and whether the address is assigned using DHCP. The Router value is usually your default gateway, which is the local address of your home or office router, such as 192.168.1.1 or 10.0.0.1.

To view DNS settings, stay in the same Details window and select DNS. This page lists the DNS servers your Mac is using for that network. These may come from your router, your internet provider, a workplace configuration profile, or a custom DNS service such as Google Public DNS, Cloudflare, or Quad9. If the list is editable, you can add or remove DNS servers, but changing DNS can affect browsing, app connectivity, and access to internal company resources.

Common places to check in System Settings

Information Where to find it
Local IP address System Settings > Network > active service > Details > TCP/IP
Router or gateway TCP/IP section, listed as Router
DNS servers Details > DNS
Hardware or MAC address Details > Hardware, depending on macOS version and adapter type

Older versions of macOS use System Preferences instead of System Settings. On those systems, open System Preferences > Network, select the active connection, and click Advanced. The TCP/IP, DNS, and Hardware tabs provide similar details. The graphical view will not show every field that commands like ifconfig, networksetup, or scutil can display, but it is often enough for checking everyday network settings on a Mac.

Frequently Asked Questions

Is there an exact ipconfig command on Mac like Windows?

macOS has a command named ipconfig, but it does not work the same way as Windows ipconfig. On a Mac, you usually use ifconfig, ipconfig getifaddr, networksetup, and scutil depending on the network detail you need.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What command shows my Mac’s local IP address?

For Wi-Fi, run ipconfig getifaddr en0 in Terminal. On some Macs or wired connections, the interface may be different, such as en1, so you can run ifconfig first to see available interfaces and their assigned addresses.

How do I find my router address on macOS?

Use netstat -nr | grep default to show the default gateway, which is usually your router’s local IP address. You can also find it in System Settings by opening Wi-Fi or Network details and checking the Router field for the active connection.

How can I check which DNS servers my Mac is using?

Run scutil --dns in Terminal to view the DNS resolvers currently configured on your Mac. For a simpler view, you can use networksetup -getdnsservers Wi-Fi, replacing Wi-Fi with the exact name of your network service if needed.

Can I view my IP address without using Terminal?

Yes. Open System Settings, go to Network, select your active Wi-Fi or Ethernet connection, and open its details to see information such as IP address, router, DNS, and hardware address. You can also Option-click the Wi-Fi icon in the menu bar to quickly see connection details like IP address, router, channel, and signal strength.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Bottom Line

macOS doesn’t use Windows’ ipconfig command the same way, but you can get the same network details with tools like ifconfig, ipconfig getifaddr, networksetup, scutil --dns, and netstat -nr. Use Terminal when you need precise interface, IP, DNS, router, or DHCP information quickly.

If you prefer a visual approach, System Settings can show the most common Wi-Fi, Ethernet, DNS, and router details without memorizing commands. Start with System Settings for basic checks, then switch to Terminal when you need deeper troubleshooting or exact output to share with support.

Quick Recap

Bestseller No. 1
HP 14' HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
HP 14" HD Laptop, Windows 11, Intel Celeron Dual-Core Processor Up to 2.60GHz, 4GB RAM, 64GB SSD, Webcam, Dale Pink (Renewed)
14" diagonal, 1366x768 resolution, HD BrightView LED, Glossy NON-TOUCH Display
$245.99
Bestseller No. 2
Dell Latitude 5420 14' FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
Dell Latitude 5420 14" FHD Business Laptop Computer, Intel Quad-Core i5-1145G7, 16GB DDR4 RAM, 256GB SSD, Camera, HDMI, Windows 11 Pro (Renewed)
256 GB SSD of storage.; Multitasking is easy with 16GB of RAM; Equipped with a blazing fast Core i5 2.00 GHz processor.
$285.00

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.