How to find your IP address on any device
There are two addresses to find: the public one your whole home shares, and the local one each device has on your network. The public one takes one click; the local one is in the network settings of every system, and the exact path is below for each.
In this guide
Your public IP address is shown at the top of the CheckMyIP homepage the moment it loads; it is the same for every device on your home network. Your local (private) IP address, such as 192.168.1.20, is in the network settings: Windows Settings → Network & internet or ipconfig; macOS System Settings → Wi-Fi → Details or ipconfig getifaddr en0; iPhone Settings → Wi-Fi → ⓘ; Android Settings → Wi-Fi → network details; Linux ip addr.
Find your public IP in one click
Open the homepage and the address is in the first line, read from the connection your browser used to fetch the page: that is exactly what every website sees, and it is the number to give to support staff, to a game host or to anyone allow-listing you. If your connection has IPv6, both addresses are shown. From a terminal, curl checkmyip.com prints the same address as plain text, which is handy in scripts.
Two things to know about this number. It belongs to your connection, not to a device: every phone, laptop and TV on your home Wi-Fi shows the same public address, because the router shares one address between them. And it can change: most providers hand out dynamic addresses, so the value you see today may differ next month, and on mobile data it changes often as you move between cells. If you need an address that stays put, see static vs dynamic IP.
Public vs local IP
The local address is the one your router gave the device, from a private range such as 192.168.x.x or 10.x.x.x (public vs private IP). It is what you need to connect two devices in the house, to set up port forwarding, to reach a printer or to find a device in the router's list. It only exists inside your network, so no website can show it to you; you read it from the device itself, which is what the rest of this guide covers.
Test it now
Cloudflare edgeRead at the Cloudflare edge from this request. The homepage adds your provider, network type and the VPN, DNS and WebRTC checks.
Show detailsWindows
Windows 11 and 10, in Settings. Open Settings → Network & internet. Click Wi-Fi and then the name of the network you are on (or Ethernet for a cable), and scroll down to the properties: IPv4 address is your local address, IPv4 DNS servers and the Physical address (MAC) are listed next to it. On Windows 10 the same page is reached through Wi-Fi → Hardware properties.
In the Command Prompt. Press the Windows key, type cmd, press Enter, then type:
ipconfigFind the adapter you are using ("Wireless LAN adapter Wi-Fi" or "Ethernet adapter Ethernet"). IPv4 Address is your local address, Default Gateway is your router, and if an IPv6 Address that does not start with fe80 is listed, you have IPv6 too. ipconfig /all adds the DHCP server, lease times and the MAC address. In PowerShell the equivalent is Get-NetIPAddress -AddressFamily IPv4, and the public address is one line away:
Invoke-RestMethod https://checkmyip.com/ipIf the address starts with 169.254, the computer could not reach a DHCP server and gave itself a fallback address: the Wi-Fi password or the cable is the problem, not the settings (169.254 addresses).
Mac
macOS Ventura and later. Open System Settings, choose Wi-Fi in the sidebar, and click Details… next to the network you are connected to. The TCP/IP tab shows the IP address, the subnet mask and the router (your gateway); the Hardware tab shows the MAC address. For a cable, choose Network → Ethernet instead. On macOS Monterey and earlier the path is System Preferences → Network, where the address is printed under the connection status.
In Terminal. Open Terminal (Spotlight: type Terminal) and run:
ipconfig getifaddr en0On most Macs en0 is Wi-Fi; if it prints nothing, try en1, or list every interface with ifconfig | grep "inet ". The router's address is route -n get default | grep gateway, and curl checkmyip.com shows the public address. Find your IP on a Mac has screenshots of every step.
iPhone and iPad
Open Settings → Wi-Fi and tap the ⓘ next to the network you are connected to. Under IPV4 ADDRESS you will see IP Address (the local address), Subnet Mask and Router (the gateway). If the network runs IPv6, an IPV6 ADDRESS group lists those as well, and the DNS section shows which resolvers the phone uses.
Two iOS features surprise people here. Private Wi-Fi Address, on by default, gives the phone a different MAC address on every network, so the router's device list will not show the hardware address from Settings → General → About; that is intended. And Limit IP Address Tracking (and iCloud Private Relay on paid iCloud plans) can route Safari and Mail through Apple's relays, so the public address a website sees can differ from the address of your connection. On mobile data the cellular address is not shown anywhere in Settings; the homepage is the quickest way to see it, and it will usually be a carrier-grade NAT address that several customers share. Find your IP on an iPhone walks through each screen.
Android
Android phones differ by maker, but the address is always inside the Wi-Fi network's details. On a Pixel or stock Android: Settings → Network & internet → Internet, tap the gear next to the connected network, and read IP address (expand Advanced on older versions). On Samsung: Settings → Connections → Wi-Fi, tap the gear next to the network, and the address is under View more or Advanced. On Xiaomi, OPPO and others it is under the network's Advanced settings. Most phones also list it under Settings → About phone → Status (or Status information), together with the Wi-Fi MAC address.
Like the iPhone, Android has used a randomized MAC address per network since Android 10, and on mobile data the address is a carrier address you can only see from a website. Find your IP on Android covers the vendor skins one by one.
Linux and Chromebook
Linux, in a terminal. The modern command is:
ip -4 addr showEach interface lists its address after inet; ip -6 addr show does the same for IPv6, ip route show default prints the gateway, and hostname -I prints just the addresses. On desktops, GNOME Settings (Network or Wi-Fi, then the gear next to the connection) and KDE System Settings show the same information. Older guides mention ifconfig; it still works where the net-tools package is installed, but ip is the current tool.
Chromebook. Click the clock, open Settings → Network, choose the Wi-Fi network you are on, and expand Network: the IP address and the router are listed there, with the MAC address under Advanced. The public address, as always, is on the homepage.
Command-line methods
For the public address from any command line: curl checkmyip.com (macOS, Linux, Windows 10 and later all ship curl), or curl checkmyip.com/json for the address with its country, provider and network as JSON, which is useful in scripts and home-automation setups. The endpoints are documented on the developer page.
Router, TV, game consoles and printers
Router. Sign in to the admin page, usually at 192.168.1.1, 192.168.0.1 or the address printed on the router's label (how to find your router's IP address). The status or overview page shows the WAN or Internet address, which is the public address your provider assigned, and a device, client or DHCP list shows the local address of everything connected. If the WAN address starts with 100.64 to 100.127, your provider uses carrier-grade NAT and the address websites see is a different one; the CGNAT guide explains what that changes.
Smart TV. In the TV's settings, open Network (or General → Network) and the connection status or information page; it lists the IP address, gateway and DNS. PlayStation 5: Settings → Network → Connection Status → View Connection Status. Xbox: Settings → General → Network settings → Advanced settings. Nintendo Switch: System Settings → Internet → Connection Status. Consoles also show the NAT type here, which matters for multiplayer and is explained in what is NAT.
Printer. Most printers can print a network configuration page from their menu (Setup → Reports → Network Configuration on many HP models, Setup → Network Settings → Print Status Sheet on many Epson models, a similar report on Canon and Brother); printers with a screen show the address under Network or Wireless settings. The router's device list is the fastest alternative. If the printer's address keeps changing and your computer loses it, give it a DHCP reservation in the router. How to find a printer's IP address covers each brand.
Questions
How do I check my IP address on my phone?
For the public address, open the CheckMyIP homepage in the phone's browser. For the Wi-Fi address: on iPhone, Settings → Wi-Fi → ⓘ next to the network; on Android, Settings → Wi-Fi → tap the network (or its gear icon) → IP address. On mobile data the address is only visible from a website.
Does every device have an IP address?
Every device that is connected to a network does, otherwise it could not send or receive anything: phones, computers, TVs, printers, smart speakers, cameras. Each has a local address on your network, and they all share your connection's public address.
Is 192.168 my IP address?
It is your local address, valid only inside your home network. Websites never see it; they see your public address, which your provider assigned and which is shown on the homepage. Both are "your IP address", for different purposes.
Can I reveal my IP address?
Your public address is revealed to every site and service you connect to, by design; nothing extra is needed. If you mean giving it to someone, the homepage shows it and the copy button puts it on the clipboard. Only share it with people who need it, such as support staff or a game host.
What is a public IP address?
The address your internet provider assigns to your connection, unique on the internet and shared by every device behind your router. It is what websites, games and services see, and the number shown at the top of the homepage.
Sources and further reading
- Microsoft Support — Essential network settings and tasks in Windows
- Apple Support — Use private Wi-Fi addresses on Apple devices
- RFC 1918 — Address Allocation for Private Internets
- RFC 3927 — Dynamic Configuration of IPv4 Link-Local Addresses (169.254.0.0/16)
- RFC 6598 — Shared Address Space (100.64.0.0/10)