How to Find Your Internal & External IP Address on a Mac

Download Article
A quick and easy guide for locating your Mac computer’s IP using System Settings or the Terminal
Download Article

When your Mac is connected to a network, it is assigned an address on the network called an IP address. The IP address is four sets of digits separated by periods, with up to three digits per set. If the Mac is connected to a local network as well as the internet, then it will have an internal IP address which marks its location on the local network, and an external IP, which is the IP address of your internet connection. Follow this guide to find both.

Quick Steps

  1. Go to Apple Menu > System Settings > Network.
  2. Select your connection type, then click Details next to your current network.
  3. Locate your Mac’s private IP address next to the IP address header.
Section 1 of 3:

Finding Your Internal IP in System Settings

Download Article
  1. How.com.vn English: Step 1 Click the Apple icon on the upper-left corner of the screen.
    To find your internal (or private) IP address, you can simply look in your Mac’s settings. To get started, open the
    How.com.vn English: Mac Apple
    Apple menu.
  2. How.com.vn English: Step 2 Select System Settings.
    In older versions of macOS, click System Preferences instead.
    Advertisement
  3. How.com.vn English: Step 3 Click Network.
    You’ll see this option in the menu bar on the left side of the window.
    • In older versions of macOS, look for Network in the main System Preferences window.
  4. How.com.vn English: Step 4 Select your connection.
    Typically, you will be connected to the network via Wi-Fi (wireless) or Ethernet (wired). The connection you are using will say Connected next to it. Click on your connection to see more information.
    • In older versions of macOS, your IP address will be listed directly beneath your connection status, in smaller print. You’ll see this as soon as you select your connection.
  5. How.com.vn English: Step 5 Click Details next to your network.
    Once you click your connection type, a new menu will open listing your available networks. The one you’re currently connected to will appear at the top. Click the Details button next to it.
  6. How.com.vn English: Step 6 Locate your IP address.
    Near the bottom of the Details menu, you’ll see two headers: one that says IP address and another that says Router. The numbers next to these headers are your Mac’s private IP address and your router’s private IP address, respectively.
    • You can also see your IP address by clicking on the TCP/IP tab on the left side of the Details window. This tab displays additional information too, such as your IPv6 address (a longer IP address that contains a mixture of numbers and letters).
    • For earlier versions of macOS, find your IP address by going to
      How.com.vn English: Mac Apple
      Apple menu > System Preferences > Network > Your Connection > Advanced > TCP/IP. You’ll see your Mac’s IP address next to the IPv4 header and your router’s address next to Router.
  7. Advertisement
Section 2 of 3:

Finding Your Internal IP Using the Terminal

Download Article
  1. How.com.vn English: Step 1 Open the Terminal....
    Open the Terminal. This can be found in the Utilities section of your Applications folder.
    • You can also find it by clicking the
      How.com.vn English: Mac Spotlight
      Spotlight search icon at the top of your screen and typing in terminal.
  2. How.com.vn English: Step 2 Use the ipconfig command.
    The correct command will depend on whether your connection is wireless (Wi-Fi) or wired (e.g., Ethernet or cable).
    • Wi-Fi connection: Type or copy and paste the command ipconfig getifaddr en0, then press Return.
    • Wired connection: Type or copy and paste ipconfig getifaddr en1 and press Return.
  3. How.com.vn English: Step 3 Copy your IP address.
    Your Mac’s local IP address will be displayed directly below the command you entered.
  4. Advertisement
Section 3 of 3:

Finding Your External IP

Download Article
  1. How.com.vn English: Step 1 Google search what is my IP address.
    You can even just type in “ip address.” One of the first results will be a box displaying your public IP address.
  2. How.com.vn English: Step 2 Use an IP lookup website.
    There are several websites that allow you to easily look up your public IP address. Try a service like Can You See Me or What Is My IP Address to check your external IP address.
  3. How.com.vn English: Step 3 Try the ifconfig command in Terminal.
    Like ipconfig, the ifconfig command will show you your IP address. However, this command shows your public IP rather than your internal or private one. To do it:
    • Launch the Terminal app.
    • Type in curl ifconfig.me and press Return.
    • Copy your public IP address. It may look like an IPv6 address (a long string of numbers and letters in groups separated by colons).
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    Can my computer be hacked through my IP address?
    How.com.vn English: Community Answer
    Community Answer
    Depending on how your computer is connected to the Internet and the type of security in place, your computer may vulnerable for a hack. In reality, chances of your computer being hacked from your known IP address is very unlikely. The trouble of hacker trying to gain access to your computer doesn't justify hacking into your computer unless you have billions of dollars in your bank account accessible from your personal computer. The most easiest way for hackers to gain access to your computer is through virus, not by attacking an IP address.
  • Question
    how to find the iP address on IOS?
    How.com.vn English: Joseph Bill
    Joseph Bill
    Community Answer
    If you want to find the IP Address go to Settings>Wi-Fi> Then look for your current network. It should tell you the IP address.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • When using an IP information site from an ISP that uses a transparent web proxy (such as AOL), be aware that the reported IP address may be that of the ISP's web proxy and not your actual IP address.
      • For security and privacy reasons, don’t give out your IP address to people you don’t know and trust.
      Advertisement

      About This Article

      How.com.vn English: Luigi Oppido
      Co-authored by:
      Computer & Tech Specialist
      This article was co-authored by Luigi Oppido and by How.com.vn staff writer, Megaera Lorenz, PhD. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 4,181,611 times.
      How helpful is this?
      Co-authors: 60
      Updated: April 22, 2024
      Views: 4,181,611
      Categories: IP Addresses | Mac
      Article SummaryX

      To find your internal IP address on a newer Mac, first click on the Apple icon on the upper-left corner of the screen. From here, click on “System Preferences…” in the drop down menu that appears. Then, click the “Network” icon in the box that opens. Once you’ve opened the Network settings, choose the connection you’re using on the left side of the screen, which is usually either wired Ethernet or wireless AirPort. After choosing your connection you will see a number in the middle of the screen, which is your IP Address. To learn how to find your internal IP address on older Macs, read on!

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 4,181,611 times.

      Reader Success Stories

      • How.com.vn English: Carmen Pepiton

        Carmen Pepiton

        Apr 15, 2017

        "It was because you not only gave me the worded explanation to finding it, but also the visual one, which helps me..." more
      Share your story

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement