You might need to know how to find your IP address for many reasons. You might be trying to connect two of your devices wirelessly, or perhaps you’re setting up a whitelist on your home router, or maybe you want to check to ensure your VPN assigns your device a new IP address.
Luckily, finding your current IP address is simple. Below, we’ll explain how to see your IP address almost instantly on any device using a web browser. We’ll also provide an alternate method if your internet access is restricted. In addition, we’ll explain how to change your IP address using a VPN and reveal the best VPN for the job.
Use method 1 in this tutorial to:
- Find your IP address on Windows 11 or any other Windows version
- Find your IP address on Mac, iPhone or iPad
- Find your IP address on an Android phone or tablet
- Find your Xbox One IP address
- Get your IP address for any other connected device
If you need to find all IP addresses on your network (not just your own), then try this guide instead: How to scan local network for IP addresses.
What is an IP address?
An IP — or Internet Protocol — address is a unique numerical label assigned to each device connected to a computer network and using the Internet Protocol for communication. IP addresses identify and locate devices on a network so that they can receive the data packets addressed to them.
There are two main types of IP addresses: IPv4 and IPv6. IPv4 consists of a 32-bit value, which is represented as four sets of numbers separated by a period. IPv4 was introduced in the eighties when there seemed little chance of there ever being more than 4,294,967,296 – the maximum value of a 32-bit number — addresses needed. However, these addresses are running out. This has led to the introduction of IPv6, which has a size of 128 bits – and thus 340,282,366,920,938,463,463,374,607,431,768,211,456 possible addresses. This is vastly more than with IPv4.
IPv6 addresses are written in hexadecimal, with colons separating groups of numbers, for example 2001:0db8:85a3:0000:0000:8a2e:0370:7334. Although IPv6 addresses have been available for over a decade, uptake has been relatively slow.
How to find your IP address
There are two methods for finding your IP address. The first is simple and user-friendly, but the second is useful if you don’t have internet access.
Method 1: Use an online IP address checker
This is by far the quickest and easiest way to see your current IP address. It works for any connected device. Although you can Google “What is my IP address?” and get an answer, we recommend using a dedicated service like whatismyip.com. This is because, in addition to showing your public IP address, these sites also show geo-location data attached to your IP address. In other words, they let you know how much information you reveal as you browse the internet.
Geo-location data isn’t 100% accurate, and different services will often return slightly different results. However, generally, anyone with your IP address can find out which country you’re in (and perhaps even which city), your Internet Service Provider, and possibly even your postal code.
Method 2: Check your IP address with the command line
If your device doesn’t have a web browser, your internet access is restricted, or you want more detailed network information, there is another way to find your IP address: using the command line. However, you should note that the commands are different for every operating system. Take a look below for a step-by-step guide on how to find your IP address on Windows, MacOS, and Linux:
Windows 8 and 8.1
First, open up the console by pressing the Windows key, typing “cmd”, and pressing Enter. In the console window, type the following, pressing the Enter key after each line:
Powershell
Invoke-RestMethod ipinfo.io/ip
Note: many guides recommend running some variation of the “ipconfig” command, but this will not work. IPConfig will only show you your internal private IP address, but your router gives you an external public IP address, which is what the websites you visit will see.
Windows 10 / Windows 11
If you’re a Windows 10 or Windows 11 user, you can open a command prompt by pressing the Windows key and typing “cmd” before hitting the Enter key.
Windows 10 and Windows 11 both include an application called cURL which allows you to see your IP address with a simple, one-line command. Once you’ve opened the command line, just type the following and hit Enter:
Curl https://ipinfo.io/ip
Related: The best Windows VPNs
macOS
macOS users can open a terminal window by pressing Command + Space at the same time, then typing “Terminal”.
macOS also includes an application called cURL which allows you to see your IP address with a simple, one-line command. Once you’ve opened the Terminal app, just type the following and hit Enter:
Curl https://ipinfo.io/ip
Related: The best VPNs for Mac
Linux
cURL isn’t installed by default in most Linux distros, but it’s very easy to get. Open a terminal by pressing CTRL+ALT+T at the same time, then type the following, pressing the Enter key after each line:
Sudo apt install curl
Curl https://ipinfo.io/ip
Related: The best Linux VPNs
Why would I want to change my IP address?
Most region-locked services rely entirely on IP addresses to determine the user’s location. As such, if you change your IP address, you can often access sites that aren’t usually available in your country. For example, you can watch the BBC iPlayer in America or Sling TV in the UK with a different IP address obtained through a VPN.
You might have received an automated fraud prevention alert letting you know your account was accessed from another country. These are helpful when they work, but the systems are rarely able to tell the difference between a hacker and a legitimate access attempt from a user who’s on vacation. However, by connecting to a VPN server in your home country — which will provide you with an associated IP address in your home country — you significantly reduce the chance of the automated system noticing and locking your account temporarily.
How to change or hide your IP address
If you want to browse or stream anonymously, you might want to change your IP address. A VPN can do this quickly and easily, and we’ve included the instructions below.
To change or hide your IP address with a VPN, just follow these steps:
- First, sign up for a VPN if you haven’t already. NordVPN is our top recommendation, but ExpressVPN and CyberGhost are excellent alternatives.
- Now, download and install the software. Most VPNs offer a selection of apps for all the major operating systems, so be sure to get the right one for your device.
- Check your IP address using one of the methods above.
- Connect to a VPN server in a different country. For example, you’ll need to connect to a server in the US for a US IP address.
- Recheck your IP address. It should now be completely different, and the geo-location data should show you’re elsewhere.
TRY THE TOP VPN RISK-FREE
NordVPN is offering a fully-featured risk-free 30-day trial if you sign up at this page. You can use the VPN rated #1 for changing your IP address with no restrictions for a month—great if you want to test whether this is the VPN provider for you.
There are no hidden terms—just contact support within 30 days if you decide NordVPN isn't right for you and you'll get a full refund. Start your NordVPN trial here.