Your default gateway is the device that connects your home network to the internet
The default gateway is the router or modem that your computer uses to send data outside your local network. When you visit a website, send an email, or stream video, your device sends that traffic to the gateway first — it then forwards the request to your internet service provider and beyond. Finding your gateway's address is useful when you need to change your WiFi password, check which devices are connected, or troubleshoot a network problem.
The gateway's address is a number like 192.168.1.1 or 192.168.0.1. It looks like an IP address because it is one — specifically, it's the IP address of your router on your local network. Once you have this address, you can open it in a web browser and log in to your router's settings.
Key Takeaways
- Your default gateway address is usually printed on a sticker on your router, or you can find it through your computer's network settings in under a minute.
- Windows users can open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway" in the results.
- Mac and Linux users can open Terminal and type route -n get default to see the gateway address.
- Once you have the address, type it into a web browser's address bar and log in with the username and password on your router's label.
- If you cannot find the address or cannot log in, restarting your router often solves the problem.
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 window will display a list of network information.
Look for the section labeled "Ethernet adapter" or "Wireless LAN adapter" — whichever one you use to connect to the internet. Under that section, find the line that says "Default Gateway" followed by a number. That number is your gateway address. Write it down or copy it.
If you see multiple adapters listed, look for the one that has an IP address starting with 192.168 or 10. That is the one connected to your home network. The gateway address will be on the same line or just below it.
Finding your gateway on Mac
Open Terminal by pressing Command and Space, typing "terminal", and pressing Enter. A white window will open. Type route -n get default and press Enter.
The output will show several lines. Look for the line that starts with "gateway:" — the address after that word is your default gateway. It will be a number like 192.168.1.1. Copy or write down this address.
If you prefer a graphical method, you can also go to System Preferences, click Network, select your connection (WiFi or Ethernet), and click Advanced. The gateway address appears under the TCP/IP tab.
Finding your gateway on Linux
Open a terminal window. Type route -n and press Enter. A table will appear showing your network routes.
Look for the row where the Destination column shows "0.0.0.0" or "default". The address in the Gateway column on that row is your default gateway. Write it down or copy it.
Alternatively, type ip route show and press Enter. Look for the line that starts with "default via" — the address after "via" is your gateway.
Checking the sticker on your router
Before opening your computer's settings, check the physical router itself. Most routers have a label on the bottom or back that lists the default gateway address, along with the WiFi network name and the login username and password.
The label usually shows a line like "Gateway: 192.168.1.1" or "Router Address: 192.168.0.1". If the label is still readable, this is the fastest way to find the address without using the command line.
Keep this label information in a safe place. You will need the login credentials whenever you want to change your WiFi settings or access your router's configuration page.
Logging into your router using the gateway address
Once you have the gateway address, open a web browser and type it into the address bar at the top — for example, type "192.168.1.1" exactly as it appears. Press Enter. A login page should appear.
Enter the username and password from your router's label. Common defaults are "admin" for both username and password, but your router may use different credentials. If you do not remember the password, you can reset the router by holding down the reset button on the back for 10 to 15 seconds — this will erase all your settings and return the router to factory defaults.
After you log in, you will see your router's settings page. From here you can change your WiFi password, see which devices are connected, update firmware, or adjust other network settings.
What to do if you cannot find or access your gateway
If the command line shows no gateway address, or if you type the address into your browser and nothing appears, restart your router. Unplug it from power, wait 30 seconds, and plug it back in. Wait another minute for it to fully restart, then try again.
If you still cannot access the gateway, check that you are connected to the correct network. If you are on a guest network or a different WiFi network, you will not be able to reach your home router. Switch to your main WiFi network and try again.
If the login page appears but you cannot remember the password, the reset button on the back of the router will restore it to factory settings. After reset, use "admin" and "admin" as the default username and password, then set a new password immediately.
Frequently Asked Questions
Why would I need to find my default gateway?
You need it to log into your router and change settings like your WiFi password, see which devices are connected, or troubleshoot network problems. It is also useful if you want to set up port forwarding or check your internet connection status.
Is my default gateway the same as my router's IP address?
Yes. The default gateway is the IP address of your router on your local network. They are the same thing.
What if I have multiple gateways listed in ipconfig?
You likely have multiple network adapters. Use the gateway address from the adapter you actually use to connect — usually Wireless LAN adapter if you use WiFi, or Ethernet adapter if you use a wired connection. The others can be ignored.
Can I change my default gateway address?
You can change your router's IP address by logging into the settings page and editing the LAN settings, but this is rarely necessary and can cause problems if done incorrectly. Most people should leave it at the factory default.
Is finding my gateway address a security risk?
No. The gateway address is part of your local network and is not visible to the internet. You need to be on your own WiFi network to reach it. Knowing your gateway address does not expose your network to outside threats.