When your Mac device is connected to the network, it is assigned an address, which is called an IP address. An IP address is a number of four digits separated by dots, where each digit can reach a three-digit value. If the device is connected to the network and to the Internet, then it will have an internal IP address that marks its position on the local network and an external IP address, which is the IP address of your Internet connection. Follow this article to find both of them.
Table of Contents
Find the internal IP address via upper panel:
- Search net icon in the upper right corner of the screen;
- After click choose “Open Network Preference”;
- Depending on your Internet connection type, choose the right one in the left block (Ethernet or Wi-Fi);
- Next to the connection used will be “Connected”. Your IP address will appear immediately below the connection status.
- The “Advanced” section has more extensive network related parameters.
Read more: Fixing a Bluetooth issues on your Mac
Find the internal IP address via Terminal:
- Set the ifconfig command. The usual ifconfig command will display a lot of unnecessary information. The following command will remove most of the unnecessary information and display your internal IP address:
ifconfig | grep "inet"
- Copy your IP address. Your IP address will be displayed next to the “inet” entry.
For inexperienced users, it’s necessary to explain that the IP routers and IP of your Mac are not the same. The very first IP address on the network is at the access point; it usually ends in .1 or .100, then individual IP addresses begin to count. If you know the format of addresses on the network, and know the IP of your computer (for example, 192.168.1.5), then you can often guess the address of the router, most likely it may be 192.168.1.1.
External IP Address
In the end I show you bonus method for advanced users. To find the external IP address via Terminal:
curl ipecho.net/plain ; echo
In this article, I showed you a couple of ways to see the IP address of your device on a local and global networks. I hope this article will help you when working with network programs. If you are interested in network direction using macOS, write about it in the comments and in the following articles we will look at advanced utilities for network monitoring.