How to find your IP address on Windows, Mac and Linux
Plain steps to see the address your computer has inside your home and the one the internet sees, on Windows, Mac and Linux, and why they differ.
Every computer on your home Wi-Fi has a number, and your home as a whole has another one. Both are called an IP address, and they're almost never the same. This guide shows you how to see each of them on Windows, on a Mac and on Linux, and how to tell which is which.
Two addresses, like a flat and its building
Think of a block of flats. Inside the building, each flat has its own number: 3, 12, 27. The postman outside doesn't see those numbers. He sees one street address for the whole building, and the people at the front desk sort the post into the right flats.
Your home works the same way. Your router is the front desk. Each computer, phone and television gets an inside number from the router (the local or private address). The internet sees one outside number for your whole home (the public address). When a website answers your laptop, the reply reaches your home's public address first, and the router passes it to the laptop.
So the steps come in two halves. The first half is different on each system. The second half is the same everywhere.
The address inside your home, on Windows
The quickest way uses a small text window that comes with Windows.
- Open the Start menu and type cmd.
- Open Command Prompt.
- Type ipconfig and press Enter.
- Find the block for the connection you're using. It's usually headed Wireless LAN adapter Wi-Fi, or Ethernet adapter if you use a cable.
- Read the line called IPv4 Address. That's your computer's local address.
In the same block there's a line called Default Gateway. That's your router's own inside address, the front desk in our building. It's handy to know, because typing it into a browser usually opens the router's settings page.
You can also find the local address in Windows Settings, in the properties of your Wi-Fi or Ethernet connection. The exact names of those screens have changed between versions of Windows, which is why the ipconfig route is easier to describe.
The address inside your home, on a Mac
There's a shortcut most people never find.
- Hold down the Option key.
- Keep holding it and click the Wi-Fi symbol in the menu bar at the top of the screen.
- A longer menu opens. The line IP Address is your Mac's local address.
If you'd rather type, open Terminal (it's in the Utilities folder inside Applications) and enter ipconfig getifaddr en0. On most Macs en0 is the Wi-Fi connection. If it prints nothing, try ipconfig getifaddr en1.
System Settings shows the same address under the details of your Wi-Fi or network connection, though where exactly depends on your version of macOS.
The address inside your home, on Linux
Linux comes in many flavours, so the commands are the most reliable route.
- Open a terminal.
- Type hostname -I (with a capital I) and press Enter. On many systems this prints your local addresses on one line.
- If that doesn't work on yours, type ip addr instead.
The ip addr output is longer. Look for a connection with a name like wlp2s0 (often Wi-Fi) or enp3s0 (often a cable), and find the line starting with inet underneath it. The number after inet, up to the slash, is your local address. Ignore the block called lo with 127.0.0.1 in it. That's the computer talking to itself, and every computer has it.
Most Linux desktops also show the address in their network settings panel.
How to tell you've found the local one
Local addresses come from a few blocks of numbers set aside for use inside homes and offices. If yours starts with 192.168, or with 10, or with 172 followed by anything from 16 to 31, it's a local address. Most home routers hand out numbers starting with 192.168.
Two other things can turn up and confuse people. An address starting with 169.254 means your computer asked the router for a number and didn't get an answer, so it made one up. That usually points to a Wi-Fi or cable problem, and restarting the connection often fixes it. And you may see a much longer address full of letters and colons. That's the newer kind of address (IPv6), and it's normal to have one alongside the shorter kind.
The address the internet sees, on any system
Your computer can't see its own public address, because that number belongs to the router. You have to ask something outside your home.
- Open a web browser.
- Type what is my IP into a search engine. Many search engines show the answer at the top, and there are plenty of websites that do nothing else.
- The number shown is your home's public address.
Here's a simple check that you're looking at the right thing. Do the same search on your phone while it's on your home Wi-Fi. You'll see the same public address as on your laptop, even though their local addresses differ. Now switch the phone's Wi-Fi off so it uses mobile data, and search again. The number changes, because the phone is now outside your building and using your mobile provider's address.
A few things change what you see. If you use a VPN, websites see the VPN's address instead of your home's. And many home connections get a new public address now and then, for example after the router restarts, so the number you write down today may not hold for ever.
Why the two numbers differ
There aren't enough of the older, shorter addresses for every device on earth to have its own. So your provider gives your home one, and the router gives everything inside its own private number. Thousands of homes use 192.168.1.10 at the same moment without any clash, just as thousands of buildings have a flat number 3.
The router keeps a note of which inside computer asked for what, so replies find their way back. This is called network address translation (NAT). It also means that, by default, a computer outside your home can't simply knock on one of your computers. It can only reach the front desk, which lets in replies to things someone inside asked for.
If you log into your router and see an outside address there that doesn't match what websites show, your provider is probably sharing one public address between several homes. That's a subject of its own.
Why this matters for a network of home computers
DeepNile is a network of ordinary computers in people's homes that run large open AI models together. When this was written, in November 2026, the program wasn't released yet and the network wasn't open, so what follows is how it's planned to work.
The computers in a DeepNile chain talk straight to each other, because every stop in between costs time. Our Lab tried reaching another computer through a public relay service instead, and measured 113 to 136 milliseconds a trip, which it marked as far too slow for a chain. So getting from one home's front desk to another's matters a great deal to us.
It also means your public address isn't hidden from the computers you work with. In the privacy notice's words, "devices connect to each other directly, so the devices you connect with see your IP address, as on any peer-to-peer network." The notice adds that "The Network's directory publishes how to reach your device while you share." You can read it in full in the privacy notice.
The relay test, and the home-router tests that taught us how these addresses really behave, are written up with their numbers in the Lab.org.