Finding your computer's IP address takes less than a minute once you know where to look. Whether you're troubleshooting a stubborn home network connection, setting up a shared network printer, or configuring remote desktop software, your machine needs an IP address to communicate with other hardware.
Every device on a network has two distinct types of IP addresses: a private IP address used inside your local network (like your home Wi-Fi) and a public IP address used by websites and services to identify your connection on the wider internet. Knowing how to find both will help you manage and diagnose network issues quickly.
Finding Your Local IP Address on Windows
Windows offers a few direct ways to check your internal network details. If you're using Windows 10 or Windows 11, the graphical settings menu or the command line will get you the answer instantly.
Method Using the Settings App
- Press the Windows key + I on your keyboard to open Settings.
- Click on Network & internet in the sidebar.
- Select Wi-Fi or Ethernet, depending on how your computer connects to the internet.
- Click on the name of your active network connection.
- Scroll down to the properties section and look for IPv4 address.
The number displayed will typically look something like 192.168.1.15 or 10.0.0.25. This is your device's unique identifier on your local router.
Method Using the Command Prompt
If you prefer a faster approach or need technical details for multiple network adapters, use the command line:
- Press the Windows key + R to open the Run dialog box.
- Type
cmdand press Enter to open the Command Prompt. - Type
ipconfigand press Enter. - Scan the text output for your active adapter (labeled as Wireless LAN adapter Wi-Fi or Ethernet adapter).
- Locate the line that reads IPv4 Address.
For additional details on Microsoft's networking tools, you can review the official Microsoft Learn documentation.
Finding Your Local IP Address on macOS
Apple keeps network configurations tucked away inside the system settings, but you can also pull up the information rapidly using the terminal if you're comfortable with command-line utilities.
Method Using System Settings
- Click the Apple icon in the top-left corner of your screen and select System Settings.
- Click on Network in the left-hand sidebar.
- Choose your active connection type, such as Wi-Fi or Ethernet.
- Click the Details button next to your connected network.
- Select TCP/IP from the menu to view your local IPv4 Address.
Method Using the Terminal App
- Open Spotlight by pressing Command + Space, type
Terminal, and press Enter. - Type
ipconfig getifaddr en0for Wi-Fi oripconfig getifaddr en1for an Ethernet cable, then press Enter. - The terminal will output your local IP address immediately on the next line.
If you want to dive deeper into how internet protocols function globally, check out the resources provided by Internet Society.
Finding Your Public IP Address
Your local IP address is hidden from the outside world by your router using Network Address Translation (NAT). When you visit websites, they see your public IP address, which is assigned to your household or office by your Internet Service Provider (ISP).
To find your public IP address quickly:
- Open any web browser on your computer.
- Go to a reputable lookup service or type "what is my IP" into a search engine.
- The search page or service will display your external IPv4 or IPv6 address right at the top of the screen.
Keep in mind that your public IP address can change periodically depending on your ISP's DHCP lease agreements, unless you pay for a dedicated static IP address.
Common Mistakes When Finding an IP Address
People often run into confusion because network setups involve multiple variables. Watch out for these common errors:
- Checking the wrong adapter: If your laptop has both Wi-Fi turned on and an Ethernet cable plugged in, it has two separate local IP addresses. Make sure you're reading the adapter that is actively transmitting data.
- Confusing local and public addresses: Giving someone your local address (
192.168.x.x) won't help them connect to your computer from outside your home network. Always share your public address for external connections, though you should do so cautiously for security reasons. - Typing errors in the terminal: In commands like
ipconfigorifconfig, a single missing letter or incorrect spacing will result in an error message. Double-check your spelling before pressing enter.
Frequently Asked Questions
Why does my computer's IP address change?
Most home routers assign local IP addresses dynamically using DHCP (Dynamic Host Configuration Protocol). When your computer disconnects and reconnects, or when the lease expires, the router might assign a slightly different number. If you need a permanent address for things like home servers, you can set up a static IP or DHCP reservation in your router settings.
What is the difference between IPv4 and IPv6?
IPv4 is the older, widely used format consisting of four numbers separated by dots (like 192.168.1.1). Because the world ran out of unique IPv4 combinations, IPv6 was introduced, using alphanumeric characters separated by colons (like 2001:db8::). Most modern operating systems support and display both.
Can someone track my exact physical location using my IP address?
No, an IP address cannot reveal your precise street address. It can only pinpoint your general geographic region—usually down to your city or the data center used by your ISP. Exact physical tracking requires GPS or explicit permission shared through device location services.
Why does my ipconfig command show multiple IP addresses?
Your computer creates virtual interfaces for security software, Bluetooth connections, virtual private networks (VPNs), and physical hardware. Look specifically for the adapter labeled as your active Wi-Fi or Ethernet connection to find the address your router actually uses.