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.

Recommended Videos

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 Google.com.

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 WhatsMyIP.com 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 192.168.0.2 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.

MacOS

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.

Linux

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!

Jon Martindale
Jon Martindale is a freelance evergreen writer and occasional section coordinator, covering how to guides, best-of lists, and…
Common macOS Sonoma problems and how to fix them
Apple's Craig Federighi presents new features in macOS Sonoma at the company's Worldwide Developers Conference (WWDC) in June 2023.

Apple’s latest operating system, macOS Sonoma, has launched, and it brings with it a bunch of great new features for your Mac. But upgrading your Apple computer could lead to problems, and while this won’t happen to everyone, it can be frustrating when issues arise.

Fortunately, there’s help at hand. We’ve put together a list of the most common macOS Sonoma problems and how to fix them. Just follow these tips and they could help you out of a tricky spot. We’ve added links to Apple’s official guidance throughout, so be sure to check them out for more assistance.
macOS Sonoma won’t download

Read more
This dangerous new Mac malware steals your credit card info
A hacker typing on an Apple MacBook laptop while holding a phone. Both devices show code on their screens.

People like to think that Apple’s Macs are more or less invulnerable to the assorted viruses and trojans that afflict Windows PCs, but that’s far from the truth. That’s just been aptly demonstrated by the emergence of a new malware strain that attempts to steal all of your passwords, credit card data, and more.

The discovery was made by security firm SentinelOne, which named the malware MetaStealer. According to SentinelOne, MetaStealer has the potential to trick you into giving away vital information that could cause a huge amount of damage, and it has a nefarious way of getting what it wants.

Read more
This critical exploit could let hackers bypass your Mac’s defenses
A hacker typing on an Apple MacBook laptop while holding a phone. Both devices show code on their screens.

Microsoft has discovered a critical exploit in macOS that could grant hackers easy access to your Mac’s most important data. Dubbed ‘Migraine,’ it shows why it’s vital to update your Mac as soon as possible.

Migraine is so damaging because it can bypass Apple’s System Integrity Protection, or SIP for short. SIP is enabled by default on modern Macs and works by sandboxing sensitive parts of the computer from outside meddling. Only processes that are signed by Apple (or those with special privileges, like Apple installers) are allowed to alter something guarded by SIP.

Read more