How to Find Your IP Address in Windows and MacOS

Updated on June 23, 2020
melbel profile image

Melanie has a BS in physical science and is in grad school for analytics & modeling. Her research is in computational chemistry.

Find your IP address in Windows and macOS.
Find your IP address in Windows and macOS.

What is an IP Address?

IP stands for Internet Protocol. Each computer network, like your home network, will have a unique external or public IP address. Each device within a network (such as your tablet or laptop) will have a unique internal or private IP address.

An external IP address is linked to the world wide web. For example, if you visit a website, the website server will receive your IP address. Think of your IP address as your online mailing address.

Note that your internet provider may change your external IP address from time to time. Within your network, your devices' internal IP addresses may change vary frequently as they connect and disconnect from your home network.

Why Know Your IP Address?

Knowing your IP address can be very useful for a number of reasons. As a webmaster, I like to exclude my IP address from my Google Analytics reports so it doesn't show my own visits in my traffic reports. If you'd like to host an online game, perhaps you need to give out your IP address to others who will be playing on your server. If you have a file server at home, having your IP address handy can help you access your files while you are away. Whatever your reasons, this guide has got you covered.

Finding out your IP address really simple and there are several ways to do it. This tutorial will show you different ways to find your IP address depending on your situation. So let's get started!

How to Find Your IP Address in Windows

Before getting started, you'll want to figure out how you're connected to the Internet. If you're connected to your router (this is usually the case if you have wireless Internet in your home, even if the computer you're using isn't wirelessly connected to the Internet), follow the steps marked "Router."

You're Connected Directly to Your Modem:

If your computer is connected directly to your modem, you'll want to follow these steps. You can view your IP by clicking "Start", then "Run." Type "cmd" (without quotes) and hit "Ok." This will bring up your command prompt.

Once you're in your command prompt, type "ipconfig" (without quotes) and hit enter. Your IP will be shown next to the words "IP Address."

You're Connected to Your Router

This is usually the case if you have wireless Internet, even if the computer you're using isn't wirelessly connected to the Internet.

If you're connected to a router and you follow the above steps, you'll be able to get your internal IP. This can be really helpful if you need to do something like port forwarding, but if you're wanting your external IP, you'll need to follow some different steps.

You can get your IP address by logging into your router. If you're comfortable using your router's firmware and know your way around, it's a great way to find your IP. Since there are so many different brands, I won't give a tutorial on how to do this, it's just good to know that you can get some information about your network there.

Click thumbnail to view full-size
Type ipconfig and hit enterIn this example, I've retrieved my internal IP address.
Type ipconfig and hit enter
Type ipconfig and hit enter | Source
In this example, I've retrieved my internal IP address.
In this example, I've retrieved my internal IP address. | Source

How to Find Your IP Address in MacOS

Follow these instructions to use Terminal on your Mac to find your IP address.

For your internal IP address:

  1. Open Terminal by clicking Launchpad, then click Other, and finally, click Terminal.
  2. If you're connected wirelessly, type: ipconfig getifaddr en0 and hit enter. If you're connected directly to your modem, type: ipconfig getifaddr en1 and hit enter. Terminal will show you your internal IP address.

For your external IP address:

  1. Open Terminal by clicking Launchpad, then click Other, then click Terminal.
  2. Type: curl ifconfig.me and hit enter. Terminal will then show you your external IP address.

Terminal can be found in "Other" in your Mac's Launchpad.
Terminal can be found in "Other" in your Mac's Launchpad.

Quick Poll

How are you connected to the Internet?

See results

Google Your IP Address

You can just ask Google what your IP address is. It really doesn't get much easier than this! Just head on over to Google search and type "IP address" (without quotes) and hit search.

At the top of the search results, there will be bold text that says "Your public IP address is." The number next to it is your IP address. Cool, right? If that doesn't work out for you, at least one of the websites in the search results will show you your IP address.

© 2012 Melanie

Comments

    0 of 8192 characters used
    Post Comment
    • psychicdog.net profile image

      psychicdog.net 

      7 years ago

      thanks melbel - I tried and got it - also go subnet Mask and default gateway???

    • TToombs08 profile image

      Terrye Toombs 

      7 years ago from Somewhere between Heaven and Hell without a road map.

      Mel, I love reading your hubs because I always learn something new and useful. Kinda like having my own special geek friend. :)

    • teaches12345 profile image

      Dianna Mendez 

      7 years ago

      This is so simple to follow. Thanks for sharing this. I am going to keep it handy. I see that we all are connected through routers from your poll.

    • profile image

      iamaudraleigh 

      7 years ago

      Another great tutoral! Thank you!

    • vox vocis profile image

      Jasmine 

      7 years ago

      I filtered out my IP address from Google Analytics a long time ago. It's a smart thing to do if you want more accurate reports. Great idea for a hub!

    • profile image

      BethDW 

      7 years ago

      Ah this is so useful! I've always wondered how to do this, thanks for sharing :)

    • RealHousewife profile image

      Kelly Umphenour 

      7 years ago from St. Louis, MO

      I didn't know you could use google to ping either! Wow...very good job of making this really understandable. I totally could do that! Ha!

      I feel so much smarter now...wait until my computer guy comes over...he will be so proud of me:)

      Looks great too!

    • melbel profile imageAUTHOR

      Melanie 

      7 years ago from Midwest, USA

      @Josh3418 I'm totally stoked that you like this hub!

      @diogenes IP stands for Internet Protocol. As a hubber, it's really nice to exclude your IP address from Google Analytics, so it doesn't show your own traffic on your hubs. As an avid reader of my own hubs (lol), it's nice to have them show stats without the pollution that is my views. :) Thank you for your question!

      @Winterfate Thank you!

    • Winterfate profile image

      Darrin Perez 

      7 years ago from Puerto Rico

      Great hub melbel! I'm sharing this with my followers! :)

      @diogenes: IP stands for Internet Protocol, if I recall correctly.

    • josh3418 profile image

      Joshua Zerbini 

      7 years ago from Pennsylvania

      Melbel,

      I never knew you could google IP, and it would just give it to you. I just tried it, and it worked! Thanks for this informative hub. You rock! :)

    working

    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, turbofuture.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://maven.io/company/pages/privacy

    Show Details
    Necessary
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
    Features
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Marketing
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Statistics
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)