When a Mac computer connects to a network, it is assigned an IP address (Internet Protocol address). This IP address consists of four sets of characters, each separated by a period, with each set containing a maximum of three digits. When a Mac is connected to a network, such as the Internet, it uses both a private IP address (internal) to mark its location within a local network and a public IP address (external) which is the IP used by the Internet connection. Follow the steps below to find both of these addresses.
Steps
Finding the local IP address (for OS X 10.5 and newer)




- The active connection method is usually set by default.
Find the local IP address (for OS X 10.4)





Find the local IP address using Terminal


ifconfig | grep "inet " | grep -v 127.0.0.1
- This command excludes the 127.0.0.1 entry, which always appears regardless of the computer you use. It's a loopback response that can be ignored if you're only interested in the IP address.

Find your external IP address

- 192.168.1.1
- 192.168.0.1
- 192.168.2.1

- Under the Internet Port in Router Status, your IP address will be fully displayed. It consists of four sets of characters, each containing up to three digits.
- This is the IP address of the router you are using. Any connection made from this router will carry this IP address.
- This IP address is assigned to you by your ISP. Most public IP addresses are “dynamic,” meaning they change over time. This address can be hidden using a proxy server.

Advice
- After finishing your tasks in Terminal, you can type “exit,” but the window won’t close completely. To close the program, use the top menu and select Terminal -> Close.
- If you want easier access to Terminal, drag and drop it into the dock.
- To find your IP address on a Windows computer, refer to related articles on Mytour.
Warning
- When using an IP address information website from your Internet service provider, you are likely using a transparent proxy server (such as VNPT). Be cautious, as the indirect IP address displayed could belong to the ISP, not your actual IP address.
