academy
Security
Security
See all Security articles
Privacy
Privacy
See all Privacy articles
Performance
Performance
See all Performance articles
Select language
Select language
Avast Academy Privacy IP Address How to Find Your IP Address on Windows or Mac

How to Find Your IP Address on Windows or Mac

Finding the IP address of your computer is a common first step when setting up a network or troubleshooting a connectivity problem. Here, we’ll show you how to find your IP address on both Mac and Windows. Then, find out how to protect your IP address with a world-class VPN.

How_to_find_your_IP_address-Hero

How to find your public IP address

The easiest way to get your public IP address is to Google it. Type in “what is my IP address” or “how to find my IP address,” and Google will tell you — though it won’t reveal your ISP (internet service provider) or your location.

Using Google to identify your public IP address

An internet search reveals your public IP address, which is what other devices online use to communicate with you via the TCP/IP model. You won’t be able to identify your local IP address online.

Hamburguer menu icon

This article contains:

    Find your public IP address using the Command Prompt (CMD)

    The Windows Command Prompt tool can also help you get your public IP address. Here’s how to find your external IP address with Command Prompt.

    1. Open the Start menu and type cmd.

    2. Enter the following command into the Command Prompt and press Enter:

    nslookup myip.opendns.com resolver1.opendns.com

    How to find your IP address using the Windows Command Prompt.

    How to find your local IP address on Windows

    It’s easy to find your local IP address — the one your router assigns to your device and uses to communicate with it on your network. Most of the time, this will be a dynamic IP address that can change periodically. Here’s how to find your IP address on your computer with Windows 11, 10, 8, 7, Vista, and XP.

    How to find your local IP address in Windows 11

    1. Open the Start menu and select Settings.

      Opening the Settings from the Start Menu in Windows 11
    2. Choose Network & internet from the menu on the left, then click Properties along the top.

      Finding your Network & Internet properties in Windows
    3. You’ll find your IPv4 and IPv6 address listed here.

      Finding your IPv4 and IPv6 address in Windows

    How to find your local IP address in Windows 10

    1. Right-click the Windows logo in the lower-left corner of your screen and select Settings.

      To see your local IP address in Windows 10, start by right-clicking the Window icon and picking “Settings.”
    2. Click Network & Internet.

      In the Windows 10 Setting screen, click on the Network & Internet icon to see your local IP address
    3. Select Wi-Fi or Ethernet in the left menu, depending on whether you’re connected wirelessly or via an ethernet cable.

      In the left column, pick the kind of network you have, in order to see your local IP address
    4. Click Network (or Network and Sharing Center) in the center column. Your IP address will appear in the next window, in the entry IPv4 address.

      If you’re on a Wi-Fi connection, click the Properties button below your Wi-Fi network name and scroll down to find out what your IP address is.

      Your local IP address is shown, along with several other network parameters

    How to check your local IP address in Windows 8/8.1

    1. Open the Start menu, type network, and select network connection settings.

      Accessing the network connection settings from the Start menu in Windows 8
    2. Click Network in the Connections menu.

      Opening the network settings in Windows 8
    3. Your IP address will be shown here.

      Finding your IP address in Windows 8

    How to get your local IP address in Windows 7

    1. Open the Start menu and click the Control Panel.

      Opening the Control Panel from the Start menu in Windows 7
    2. Click View network status and tasks under the Network and Internet category.

      Accessing Network settings from the Control Panel in Windows 7
    3. Click Local Area Connection.

      Opening Local Area Connection info in the Network and Sharing Center in Windows 7
    4. In the pop-up window that appears, click Details.

      Viewing Local Area Connection Status in Windows 7
    5. You’ll find your local IP address listed here under IPv4 address.

      Viewing local network details in Windows 7

    Find your IP address using the command prompt (CMD)

    You can quickly get your local IP address on your computer with the Windows Command Prompt tool. It’ll show you both your IPv4 address as well as IPv6 address. Here’s how to find your IP address using CMD:

    1. Open the Start menu and type cmd to open the Command Prompt.

    2. Type ipconfig into the Command Prompt and press Enter. The tool will return a set of data that includes your IP address.

      Entering “ipconfig” in a Windows Command Prompt screen displays several network parameters, including your local IP address

    How to find your local IP address on a Mac

    1. Open the Apple menu and select System Preferences.

    2. Open View menu and select Network, or click Network in the System Preferences window.

      here are several ways to see your local IP address on a Mac. Start by opening the Network System Preferences pane, either with the View menu or by double-clicking the Network. icon.
    3. Choose your network connection from the menu on the left.

    4. For an Ethernet or USB connection, your local IP address will be shown.

      Viewing your IP address on Mac
    5. For a Wi-Fi connection, you’ll see your IP address shown under the connection status.

      Viewing your IP address with a Wi-Fi connection on macOS

    How to find your local IP address using the MacOS Terminal

    1. Open the Terminal. You’ll likely find it in the Utilities subfolder of the Applications folder.

    2. For Ethernet connections, enter the command ipconfig getifaddr en1. For Wi-Fi connections, enter the command ipconfig getifaddr en0.

      The Terminal app can quickly show you your local IP address and your public IP address at the command prompt with one simple entry

    To get your public IP address from the Mac Terminal, enter the command curl ifconfig.me.

    How to find your IP address on Android

    1. Go to Settings and select About phone.

      Finding information about your Android Samsung phone.
    2. Tap Status information (if you have a Samsung phone). On some Android versions, you can skip this step and simply scroll to find your IP.

      Finding status information about your Android Galaxy phone.
    3. Scroll to find your IP address (both your IPv4 and IPv6 addresses).

      Finding your IP address on an Android Samsung phone.

    How to find your IP address on iOS

    1. How to find your IP address on iOS

      The Settings app in iOS
    2. Tap the blue info icon next to your active Wi-Fi connection.

      The Wi-Fi settings in iOS
    3. Scroll down to find your local IP address.

      Viewing Wi-Fi network settings in iOS

    How to find a website’s IP address

    Need to find the IP address of a website? The Windows Command Prompt will do it for you, or you can use one of many online tools.

    How to find a website’s IP address with Command Prompt

    Open the Command Prompt and enter the ping command followed by the URL of the website you’d like to check. Here, we’ll ping the URL our own Avast website.

    Use command prompt to find the IP address of any website online.

    How to find a website’s IP address with an online tool

      1. Navigate to one of the many IP address lookup websites on the internet. For this example, we’ll use WhatIsMyIPAddress.com. Enter the URL of the website whose IP address you’d like to find, then press Enter.

        Using a web-based IP address lookup tool to find an IP address
      2. The IP address lookup tool will show you the IP address of your chosen website.

        Finding an IP address online

    Is my IP address secure?

    Your IP address is not secure — it’s actually public information. Just as there are tools that let you find your public IP address, there are tools that let other people find your public IP address, too. Other devices on the internet use your IP address to communicate with you.

    Everything you do online is tagged with your IP address, including your emails, your online shopping activity, and your browsing history. Someone who knows your IP address can identify your general location, just as you can. This is how online ad tracking works: advertisers can feed you ads based on where you’re browsing from.

    It’s hard to associate a public IP address with a particular person, and it’s usually not worth the effort. But a motivated stalker or cybercriminal might make that effort — and so may law enforcement — which is why it’s important to know how to hide your IP.

    A VPN (virtual private network) is the best way to hide your public IP address and conceal your physical location. It routes your internet traffic through another server with a different IP address to give you a new IP from an entirely different part of the world, keeping your real IP address hidden and helping you browse the web anonymously.

    Now, stop anyone else from finding your IP address

    Your public IP address is how both websites and cybercriminals can find you on the internet. Sometimes that’s useful, because it means you can get personalized and localized information. But sometimes it’s tiresome or even dangerous, so it’s good to know you can make it harder to be targeted, identified, and tracked online.  

    The best way to stop people from finding your IP address is to use a VPN. A VPN is a simple piece of software that routes all your traffic through a third-party server, making it nearly impossible for anyone to know where you are or what your actual IP address is.

    Avast SecureLine VPN offers airtight online privacy by encrypting your internet connection with a simple click of a button. Download Avast SecureLine VPN today and enjoy true online freedom.

    Protect your IP and your data with Avast SecureLine VPN for Android

    FREE TRIAL

    Protect your IP and your data with Avast SecureLine VPN for iPhone

    FREE TRIAL