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 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 the Evergreen Coordinator for Computing, overseeing a team of writers addressing all the latest how to…
Is macOS more secure than Windows? This malware report has the answer
A person using a laptop with a set of code seen on the display.

It’s a long-held belief that Macs are less at risk of malware and viruses than Windows PCs, but how true is that? Well, a new report has shed some light on the situation -- and the results might surprise you.

According to threat research firm Elastic Security Labs, roughly 39% of all malware infections happen on Windows PCs. In good news for Apple fans, only 6% of breaches occurred on macOS, making Mac systems far less vulnerable than their Windows counterparts.

Read more
This Mac malware can steal your credit card data in seconds
Apple's Craig Federighi speaking about macOS security at WWDC 2022.

Despite their reputation for security, Macs can still get viruses, and that’s just been proven by a malicious new Mac malware that can steal your credit card info and send it back to the attacker, ready to be exploited. It’s a reminder to be careful when opening apps from unknown sources.

The malware, dubbed MacStealer, was discovered by Uptycs, a threat research firm. It hoovers up a wide array of your personal data, including the iCloud Keychain password database, credit card data, cryptocurrency wallet credentials, browser cookies, documents, and more. That means there’s a lot that could be at risk if it gains a foothold on your Mac.

Read more