Mac Command For Ipconfig



Mac Command For Ipconfig

Ipconfig on Mac is not like the Windows command of the same name, but is still very useful. If you momentarily forget where you are at a Mac OS X terminal session, you might type 'ipconfig /all' or something equally Windowish. Mar 09, 2020 Using ipconfig From the command prompt, type ipconfig to run the utility with default options. The output of the default command contains the IP address, network mask, and gateway for all physical and virtual network adapters. The ipconfig command supports several command line options.

How to find internal and external IP addresses on Mac OS X and macOS?

An IP (Internet Protocol) address is assigned whenever your device connects to the Internet or a local network. The most frequent form of an IP address is four sets of digits with three digits per set. If your computer is connected to both a local network and the Internet, it will have an internal IP address signed by a local network and external IP address, which is the address of your Internet connection.

If you are setting up a network or sharing files, the IP address is required. In this article, we show a number of ways to find a Mac IP address. This guide applies to any version of Mac OS.

Mac Command For Ipconfig

Mac Command For Ipconfig 10

Table of Contents:

It is recommended to run a free scan with Malwarebytes - a tool to detect malware and fix computer errors. You will need to purchase the full version to remove infections and eliminate computer errors. Free trial available.

Find your internal IP Address through System Preferences

The first method, which will work on any operating system version, is to visit Network configuration in System Preferences. Open the Mac system preferences and locate Network, click on the network you are connected to, and below the Status line you will see your IP address.

For detailed information click Advanced and select TCP/IP tab where you will find more information about your network.

Find out your internal IP address by using Terminal

This method is easier and faster for Mac users who are familiar with a command line program called Terminal. Even if you have not used Terminal before, just follow the instructions and you will find the internal IP address. First, use spotlight by pressing Command and Spacebar and type Terminal. Then, press Return. Alternatively, you can find Terminal under the Utilities folder. Open finder, choose Applications, select Utilities, and then launch Terminal.

When Terminal has launched, type the following command: ipconfig getifaddr en0 (to find your IP address if you are connected to a wireless network) or ipconfig getifaddr en1 (if you are connected to an Ethernet). If you are using Mac OS X, the command ipconfig |grep inet displays detailed information about your computer signification in the network. The IP address is usually displayed beside last inet, however, this command does not work on macOS High Sierra.

Find your external IP address

To find your external IP address, there are two easy methods that work on all versions of the Mac operating system. First, open Google and Type IP in search. This will display your external address.


If you can browse the Internet, use the Mac command line. Launch Terminal, which is under the Utilities folder, and type: curl ifconfig.me or curl ipecho.net/plain ; echo. These commands will display your IP address in Terminal.

Video Showing how to find out your IP address on Mac:

How to get your local IP address with Ipconfig equivalent for Mac OS X

Ipconfig Mac – Just like you you can open command prompt in Windows and hit “ipconfig” to get your local LAN/WLAN IP address, you have the same option on a Mac in OS X with the command “ifconfig”.

Simply open up the terminal, eg. by pressing cmd+space and typing “terminal”.
Then type “ifconfig” and hit enter.

How to get your local IP address from System Preferences

Ipconfig Command For Mac Os

Another option to get your local IP address on a Mac is to click the Apple logo in the taskbar, then click “System Preferences”, type “Network” and hit enter. This will open up a graphical view, which shows you your local IP address as illustrated: