Your gateway address is the IP address of your router — the device that connects your home network to the internet
Every device on your home network needs a way to reach the outside world. That path runs through your router, which has its own address on your local network. Finding this address matters because it lets you log into your router's settings to change your Wi-Fi password, update firmware, or see which devices are connected. Without knowing how to find it, you cannot manage the security of your own network.
The gateway address is almost always something like 192.168.1.1 or 192.168.0.1, depending on your router's manufacturer. It is a private IP address — one that only works inside your home network, not on the public internet. Your router uses this address to receive commands from your devices and send them back out to the wider world.
Key Takeaways
- Your gateway address is your router's local IP address, usually 192.168.1.1 or 192.168.0.1, and you need it to log into your router's settings.
- On Windows, you can find it by opening Command Prompt and typing ipconfig, then looking for the line labeled "Default Gateway".
- On Mac or Linux, open Terminal and type netstat -nr | grep default to see your gateway address in the output.
- If you cannot remember your router's password, you can reset the router to factory settings by holding the reset button for 10 to 15 seconds, though this erases all your custom settings.
- Once you log in, change the default admin password when ready — most routers ship with the same password for all units of that model.
Finding your gateway on Windows
Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open. Type ipconfig and press Enter. The output will show several lines of information about your network connection.
Look for the section labeled with your active network connection — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are on Wi-Fi. Under that section, find the line that says "Default Gateway". The number next to it is your router's address. Write it down or take a screenshot before you close the window.
Finding your gateway on Mac
Open Terminal by pressing Command and Space together, typing terminal, and pressing Enter. Type netstat -nr | grep default and press Enter. The output will show one or more lines starting with "default".
The first number after the word "default" is your gateway address. It will be an IP address like 192.168.1.1. If you see multiple lines, look for the one that corresponds to your active connection — usually the one with the lowest metric number, or the one that does not say "utun" in the interface column.
Finding your gateway on Linux
Open a terminal window. Type ip route show and press Enter. Look for the line that starts with "default via". The IP address that appears right after "via" is your gateway address.
Alternatively, type route -n and press Enter. Find the line where the Destination column shows 0.0.0.0 and the Flags column includes "UG". The Gateway column in that row shows your router's address.
What to do once you have the address
Open a web browser and type your gateway address into the address bar — for example, 192.168.1.1 — and press Enter. Your router's login page should appear. You will be asked for a username and password.
The default username is often admin and the default password is often admin, password, or 12345. Check the sticker on the back or bottom of your router — many manufacturers print the default credentials there. If you have changed the password before and cannot remember it, you will need to reset the router.
Once you are logged in, you can change your Wi-Fi password, update the router's firmware, view connected devices, or adjust security settings. The exact menu names vary by manufacturer, but most routers have a section called "Wireless" or "Wi-Fi" where you can change the network name and password.
Resetting your router if you forgot the password
If you cannot log in because you do not remember the admin password, you can reset the router to its factory settings. Look for a small reset button on the back or bottom of the router — it is usually recessed so you cannot press it by accident.
With the router powered on, use a paperclip or the tip of a pen to press and hold the reset button for 10 to 15 seconds. The lights on the front of the router will blink or turn off. Release the button and wait for the router to restart — this takes about a minute. Once it is back on, the admin password will be back to the factory default, and you can log in again.
Be aware that resetting the router also erases any custom settings you made — your Wi-Fi password will go back to the default, any port forwarding rules will be deleted, and any devices you blocked will be unblocked. You will need to set everything up again from scratch.
Why you should change the default password
Every router of the same model ships with the same default admin password. If someone knows your router's model — which they can often guess from the Wi-Fi network name — they can look up the default password online and log into your router from anywhere on your network.
Once inside, they can change your Wi-Fi password, redirect your internet traffic to a fake website, or see which devices are connected. Changing the admin password to something only you know prevents this. Use a password that is at least 12 characters long and includes uppercase letters, lowercase letters, numbers, and symbols.
Frequently Asked Questions
What if I type the gateway address and nothing happens?
Make sure you are typing it correctly — 192.168.1.1 is the most common address, but yours might be 192.168.0.1 or something else. Double-check the address you found in Command Prompt or Terminal. If the address is correct but the page does not load, try a different web browser. If that does not work, restart your router by unplugging it for 30 seconds and plugging it back in.
Can I find my gateway address on my phone?
Yes. On Android, go to Settings, tap Wi-Fi, tap the network you are connected to, and look for "Gateway" in the network details. On iPhone, go to Settings, tap Wi-Fi, tap the information icon next to your network name, and look for "Router" in the list. The address shown is your gateway.
Is it safe to log into my router from a public Wi-Fi network?
No. If you log into your router while connected to public Wi-Fi, someone on that network could intercept your login credentials. Only log into your router when you are connected to your own home network, or use a wired connection if your router has an ethernet port for administration.
What if I see multiple gateway addresses?
If you have more than one network connection — for example, both Wi-Fi and ethernet — you may see multiple gateways. They should all be the same address, because they all route through the same router. If they are different, you may have two separate networks, which is uncommon in a home setup. Use the gateway for whichever connection you are currently using.
Do I need to find my gateway address to change my Wi-Fi password?
Yes, you need to log into your router to change the Wi-Fi password. Some routers have a button on the back that resets the Wi-Fi password to a default, but logging in through the gateway address is the standard way to make the change yourself and choose a password you will remember.