Skip to main content

How to find your IP address

Knowing your computer’s IP address is like knowing its digital location. It can help you connect to it in certain applications, or find out what it’s connecting to. Whether your interests in your computer’s IP address are academic or pure intrigue, it doesn’t matter. In this guide, we’ll teach you how to find your IP address in just a few quick steps.

In order for us to find your IP address though, we need to know which one you want to find. There are actually two IP addresses for your system: Your public address and your local address. The former is the one that the world sees when you connect to websites and other computers across the world. The latter is the one that devices like your printer or router use to locate you on your network. Both are easy to find, but the techniques for doing so are a little different.

If you want to find your router’s IP address, here’s how to do so.

Public IP address

There are a number of tools you can use to find your public IP address, but the easiest are online resources. This technique works on both MacOS and Windows PCs.

Step 1: Open your browser of choice and visit

Step 2: Search for what’s my IP?

Step 3: Google will list your public IP address as the top search result.

Image used with permission by copyright holder

Alternatively, visit and it too will tell you your public IP address.

Local IP address

Windows 10

Image used with permission by copyright holder

Finding your local IP address is a little more convoluted than your public one, but it’s still quick and easy. Here’s how to find your IP address on Windows machines.

Step 1: Open the Windows Command Prompt by searching for CMD in the Windows 10 search box and clicking on the corresponding result. Alternatively press Windows key + R, to bring up the Run box. Type in CMD and press Enter.

Step 2: With the Command Center window selected, type in ipconfig and press enter.

Step 3: You’ll see a lot of information appear on the screen. It’s all related to your local network, but the entry you’re looking for is next to IPv4 address. That number, which likely looks like or similar, is your local IP address.

Here are some more tips on how to use Windows’ Command Prompt.

Windows 7 and 8.1

Finding your local IP address on older versions of Windows uses the exact same method. You still need to access the Command Prompt and input ipconfig. The only difference may be how you access the Command Prompt, though the Run method should work on all of them.


Image used with permission by copyright holder

Finding your IP address on Apple’s MacOS is, if anything, a little easier than Windows PCs, so if you’re reading this on an Apple system, follow the quick steps below.

Step 1: Click the Apple logo in the top left-hand corner and select System Preferences from the drop-down menu.

Step 2: Click on the silver globe Network icon to open your network settings menu.

Step 3: In the left side window, look at your internet options and choose the one that’s currently connected, whether Wi-Fi or wired. In the Status section here, you will be able to see information on your IP address.

Image used with permission by copyright holder

Step 4: If you can’t see your IP address in the status or want more information, select the Advanced button, and then choose the TCP/IP tab at the top. This will give you information on your IP address and other connection data.

Step 5: Like Windows, you also have the option of seeing your address through a command. Open the MacOS Terminal, which you can find in Utilities, and input the command ifconfig |grep inet, which will return a section of information. At the end of this data should be your IP address.

Image used with permission by copyright holder

Now that you know how to find your IP address on MacOS, here’s a guide on how to forget a network.


Image used with permission by copyright holder

If you’re on Linux, finding your local IP address is also quick and easy. Start by opening up the terminal by pressing the keys Ctrl + Alt + T at the same time — this usually works on most Linux configurations, but if not, look up the best way to access the command line for your particular Linux machine. When the terminal window pops up, type, hostname -I and select enter. This should directly return your IP address.

Note on IPv6

You’ll see that our examples here use IPv4, which remains the most common protocol for IP addresses (and has been since the internet first came together). However, you’ll also see sections for IPv6, which are often — but not always — blank. IPv6 is a newer IP address standard that’s designed to replace IPv4 as IPv4 runs out of room for new addresses. IPv6 is a slightly different configuration with a lot more room for new addresses and some extra security.

While IPV6 is widely available, adoption remains slow and a lot of internet companies are still resistant to the change. Eventually, IPv6 will replace IPv4, while doing essentially the same things. It can also be found in the same ways — just look for IPv6 information instead of IPv4!

Editors' Recommendations

Jon Martindale
Jon Martindale is the Evergreen Coordinator for Computing, overseeing a team of writers addressing all the latest how to…
This major Apple bug could let hackers steal your photos and wipe your device
A physical lock placed on a keyboard to represent a locked keyboard.

Apple’s macOS and iOS are often considered to be more secure than their rivals, but that doesn’t make them invulnerable. One security team recently proved that by showing how hackers could exploit Apple’s systems to access your messages, location data, and photos -- and even wipe your device entirely.

The discoveries were published on the blog of security research firm Trellix, and will be of major concern to iOS and macOS users alike, since the vulnerabilities can be exploited on both operating systems. Trellix explains that Apple patched the exploits in macOS 13.2 and iOS 16.3, which were released in January 2023, so you should update your devices as soon as you can.

Read more
Common macOS Ventura problems and how to fix them
A MacBook Pro M2 sits on a wooden table with a nice bokeh background.

Apple released macOS Ventura in late October of 2022 bringing several interesting features as well as a few new problems. If you're having trouble after upgrading from macOS Monterey to Ventura, here are some solutions that could help.
AirDrop isn't working

AirDrop is a fantastic feature when it works and incredibly frustrating when it doesn't. A macOS update sometimes leads to AirDrop problems. Luckily a few simple tips can usually correct the problem. The easiest solution is to open the Control Center and toggle AirDrop off and on again. You can also try switching between Contacts Only and Everyone.

Read more
This critical macOS flaw may leave your Mac defenseless
A close-up of a MacBook illuminated under neon lights.

Apple’s macOS operating system has such a strong reputation for security that many people mistakenly believe Macs simply aren’t affected by malware. Well, Microsoft has served up a reminder that that’s not true, as the company has identified a serious vulnerability that affects one of macOS’s most important lines of defense.

According to Bleeping Computer, the bug was first reported by Jonathan Bar Or, Microsoft’s principal security researcher, who named the flaw Achilles. It is now tracked as CVE-2022-42821.

Read more