Why you need to know your IP address and gateway
Your IP address is the number your device uses to talk to other devices on your home network and the internet. Your gateway is the address of your router — the device that connects your home network to the internet. You need both when you're troubleshooting a slow connection, setting up a device that won't connect, or logging into your router to change its password or settings.
Finding these numbers takes less than a minute on any device. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but the information you're looking for is the same.
Key Takeaways
- Your IP address is a four-part number like 192.168.1.50; your gateway is usually 192.168.1.1 or 192.168.0.1.
- On Windows, open Command Prompt and type ipconfig to see both numbers in seconds.
- On Mac, go to System Settings > Network and click your active connection to find your IP address and router address.
- On Linux, open a terminal and type ip route to find your gateway and hostname -I to find your IP address.
- Your gateway address is almost always the same across all your devices on the same network.
Finding your IP address and gateway on Windows
Open the Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open. Type ipconfig and press Enter.
Look for the section labeled with your network name (usually "Ethernet" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on Wi-Fi). Under that section, you'll see:
- IPv4 Address — this is your device's IP address on your home network.
- Default Gateway — this is your router's address.
Write both numbers down or take a screenshot. You can close the Command Prompt window when you're done.
Finding your IP address and gateway on Mac
Click the Apple menu in the top-left corner and select System Settings. Click Network in the left sidebar.
You'll see a list of network connections. Click the one you're currently using (it will have a green dot next to it). A details panel will open on the right side. Look for:
- IP Address — your device's address on your home network.
- Router — your gateway address.
If you don't see these fields, scroll down in the details panel. Both numbers should be visible without clicking any additional buttons.
Finding your IP address and gateway on Linux
Open a terminal window. The keyboard shortcut is usually Ctrl+Alt+T, though this varies by Linux distribution.
To find your gateway, type ip route and press Enter. Look for the line that starts with "default via" — the number after "via" is your gateway address.
To find your IP address, type hostname -I and press Enter. The number that appears is your device's IP address on your home network.
What those numbers actually mean
An IP address on a home network always has four parts separated by periods, like 192.168.1.50. The first two or three parts (192.168.1 or 192.168.0) are the same for every device on your network. The last part is unique to your device. If you see a different pattern — like 10.0.0.50 — your router is using a different numbering scheme, but it works the same way.
Your gateway is almost always 192.168.1.1 or 192.168.0.1. This is the default address most routers use. If you see something different, your router was set up with a custom address, but the principle is the same: it's the address you type into a web browser to log into your router and change settings.
What to do once you have these numbers
If you're troubleshooting a connection problem, write down the IP address and gateway for each device that's having trouble. If some devices show a gateway address but others don't, the ones without a gateway aren't properly connected to your router.
If you need to log into your router to change your Wi-Fi password or restart it, type your gateway address into a web browser's address bar (for example, type 192.168.1.1). Your router will ask for a username and password — these are usually printed on a sticker on the back or bottom of the router itself.
If a device shows an IP address that starts with 169.254 instead of 192.168 or 10.0, that device is not actually connected to your network, even though it thinks it is. Forget the network in that device's settings and reconnect to it.
When your IP address changes
The IP address your device gets from your router can change. Most home routers give out new addresses every time a device reconnects or every few days. This is normal and doesn't break anything — your device will automatically get a new address and keep working.
If you need a device to always have the same IP address (for example, if you're setting up a security camera or a network printer), you can assign it a static IP address in your router's settings. This tells your router to always give that device the same number. You'll need to log into your router using the gateway address and look for a section called "DHCP" or "Reserved IPs" or "Static IP" — the exact name varies by router brand.
Frequently Asked Questions
Is my IP address the same as my public IP address?
No. Your IP address (192.168.1.50 or similar) is only used inside your home network. Your public IP address is what websites see when you visit them, and it's assigned by your internet provider. To find your public IP, search "what is my IP" in any search engine. You don't usually need your public IP for home network troubleshooting.
Why do I see two different IP addresses on my device?
You might have both an Ethernet connection (wired) and a Wi-Fi connection active at the same time. Each one gets its own IP address. Use the one for the connection you're actually using — if you're on Wi-Fi, use the Wi-Fi address; if you're plugged in with a cable, use the Ethernet address.
Can someone use my IP address to hack me?
Your home network IP address (like 192.168.1.50) is only visible to other devices on your Wi-Fi or wired network. Someone outside your home can't see it or use it to attack you. Your public IP address is visible to websites, but it's not a security risk by itself — it's just how the internet knows where to send information back to you.
What if my gateway address doesn't match what I expect?
Some routers use 192.168.0.1 instead of 192.168.1.1, and some use 10.0.0.1. All of these are normal. Whatever address your system shows is the correct one for your router. If you're not sure, try typing it into a web browser — if your router's login page appears, you have the right address.
Do I need to write down my IP address?
You don't need to keep it permanently. Your IP address changes regularly, so writing it down today won't help you tomorrow. Write it down only when you're actively troubleshooting something right now. Your gateway address stays the same, so that's the one worth remembering or writing down for future reference.