How to Find Your IP Address on Different Devices?
Oct 7, 2026
Photo by User_Pascal on Unsplash
Steps to find local and public IP addresses on devices. Commands for Windows, macOS, Android, iOS, IPv4 and IPv6 structures, and router settings.
Quick Answer
While you can find a device's local IP address through operating system settings or the command line, you need a browser to identify its public, internet-facing IP address.
To find your IP address, check your operating system's network settings or use the command line. You can see your local IP address by typing "ipconfig" on Windows, "ipconfig getifaddr en0" in Terminal on macOS, or "ip addr" on Linux. To find your public IP address, visit an IP lookup website in your browser or type "curl ifconfig.me" into the command line.
Before you start: local vs public IP
A device at home has its own local IP address, but it reaches the internet through your router's public IP address. The local address is assigned by the router in your home or office and is unique only within that network. These addresses typically fall within the 192.168.0.0/16, 10.0.0.0/8, and 172.16.0.0/12 ranges. Your public IP address is assigned to your router by your internet service provider and connects you to the wider world. No server outside your network can directly see your local IP address; incoming traffic first reaches your router's public address, which then routes it to the correct local device using NAT (Network Address Translation).
Some providers, especially on mobile networks, use shared addressing called CGNAT. In that case the WAN address shown in your router's settings may start with 100.64 and differ from the public IP that websites see.
Find your local IP address by device
Windows
The quickest graphical route is Settings > Network & internet > Wi-Fi (or Ethernet), then your network's properties page, where the IPv4 address is listed. To use the command line on Windows 10 and 11:
- Press the Windows + R keys to open the Run window.
- Type "cmd" in the box and press Enter to launch the Command Prompt.
- Type "ipconfig" and press Enter.
- Find your active connection type (such as "Ethernet adapter" or "Wireless LAN adapter Wi-Fi") in the results.
- Look at the value next to the "IPv4 Address" line under this heading; this is your local IP address.
macOS
- Type "ipconfig getifaddr en0" in Terminal; it returns the local address of your Wi-Fi connection directly (Wi-Fi is en0 on most Macs).
- Alternatively, look at the "inet" line under en0 in the "ifconfig" output.
- In the graphical interface, go to System Settings > Wi-Fi and click Details next to your network.
Linux
- Run "ip addr".
- Look for the "inet" value under your active interface, such as wlan0, wlp2s0, or eth0.
Android
- Go to your device's Settings.
- Tap Network & internet or Connections.
- Tap the gear icon next to your connected Wi-Fi network (or tap the network name directly).
- Expand the Advanced section and find the IP address at the bottom.
iOS (iPhone and iPad)
- Open the Settings app and go to Wi-Fi.
- Tap the blue "i" (information) icon to the right of your connected network name.
- Scroll down to the IPv4 Address section and look at the IP Address line.
Public IP address
- Visit an IP lookup website in your browser; or
- type "curl ifconfig.me" into the command line.
Reading the address: IPv4 and IPv6
IPv4 addresses consist of four 8-bit number groups separated by dots, with values from 0 to 255 in each group, such as "192.168.1.5". As the growing number of devices exhausts IPv4, IPv6 is stepping in to offer a much larger address space. IPv6 addresses consist of eight groups of four-digit hexadecimal numbers separated by colons, such as "2001:0db8:85a3:0000:0000:8a2e:0370:7334".
- If an IP lookup site shows an address in this long format, your connection supports IPv6; the site sees your public IPv6 address, and you still have an IPv4 address as well.
- In the "ipconfig" output, an IPv6 address starting with fe80 is a link-local address that only works on your own network.
- An IPv6 address marked "temporary" changes periodically for privacy.
Set a static IP address on a router
To stop the local IP address of a printer, file server, or smart home device from changing, configure a static IP through your router's interface.
- Type your router's gateway address (usually 192.168.1.1 or 192.168.0.1) into your browser's address bar and log in with your username and password. You can also change your Wi-Fi password from the same panel.
- Find the "DHCP Server", "LAN Settings", or "Address Reservation" menu in the interface.
- Identify the physical MAC address of the device you want to give a static IP, and enter the local IP address you want it to always receive.
- Save the settings. Your router will now assign this same local IP address to that device every time it connects.
If it did not work
- The address in your router's settings differs from what websites see: your provider may be using CGNAT (a shared address starting with 100.64).
- Your IP address has changed: most home subscribers use a dynamic IP. To keep your public IP permanent, you must pay your service provider an extra fee for a static IP.
Common mistakes
- Assuming your IP address stays the same when you turn your router off and on again. To manage unused addresses efficiently, providers assign a new public IP when your router restarts or at regular intervals.
- Assuming every device uses its own independent public IP address. Your smart TV, computer, and phone all connect to the outside world using a single IP address; your router translates it into multiple private addresses on the local network using NAT.
Published: Oct 7, 2026 ยท Last reviewed: Nov 15, 2026
Spotted a mistake? Tell us and we will correct it.
Topics
You Might Also Like
Other posts on related topics.
Wi-Fi Connected but No Internet: Causes and Fixes
Technical reasons behind being unable to connect to the internet while on a wireless network, involving IP, DN...
Sep 29, 2026
How to Change Your Wi-Fi Password
How to change your Wi-Fi password in your router's settings: the address to type, where to find the login deta...
Sep 25, 2026
What to Do if an External Hard Drive Is Not Showing Up on Your Computer?
If your external hard drive does not appear in File Explorer, you can resolve the issue by assigning a drive l...
Nov 5, 2026