What your default gateway is and why you need to know it
Your default gateway is the device that connects your home network to the internet — almost always your router. When your computer sends data to a website or another network, it goes through the gateway first. Knowing your gateway's address helps you log into your router to change passwords, check connected devices, or troubleshoot connection problems.
The gateway address is usually something like 192.168.1.1 or 192.168.0.1. You do not need to memorize it, but you do need to find it when you want to access your router's settings. The steps differ slightly depending on whether you use Windows, Mac, or Linux, but the process takes less than a minute on any system.
Key Takeaways
- Your default gateway is your router's address on your local network, and you need it to log in and change router settings.
- On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway" under your active connection.
- On Mac, open System Preferences, go to Network, select your connection, and click Advanced — the gateway appears under the TCP/IP tab.
- On Linux, open a terminal and type ip route or route -n to see the gateway listed as the default route.
- Once you have the address, type it into your browser's address bar to reach your router's login page.
Finding your gateway on Windows
Open Command Prompt by pressing Windows key + R, typing cmd, and pressing Enter. In the window that opens, type ipconfig and press Enter. You will see a list of network connections.
Look for the section labeled with your active 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" followed by an IP address. That address is what you need. Write it down or take a screenshot.
If you see multiple network connections listed, focus on the one that shows an IPv4 Address (a four-part number like 192.168.x.x). The gateway for that connection is the one you want.
Finding your gateway on Mac
Click the Apple menu in the top-left corner and select System Preferences (or System Settings on newer versions). Click Network, then select the connection you are using — Wi-Fi or Ethernet — from the list on the left.
Click the Advanced button in the bottom-right corner. In the window that opens, click the TCP/IP tab at the top. You will see a field labeled "Router" — that is your default gateway. The address appears directly below the label.
If you do not see an Advanced button, your connection may be set to automatic configuration. In that case, the gateway information still appears in the TCP/IP tab under the Router field.
Finding your gateway on Linux
Open a terminal window. Type ip route and press Enter. The output will show several lines of routing information. Look for the line that starts with "default via" — the IP address that follows is your default gateway.
If that command does not work, try route -n instead. This shows the routing table in a different format. Look for the row where the Destination column shows 0.0.0.0 or default — the Gateway column in that row is your default gateway address.
What to do once you have the address
Open any web browser and type your gateway address into the address bar at the top — for example, 192.168.1.1 — then press Enter. You should see a login page for your router.
If nothing appears, double-check that you typed the address correctly. If you still see an error, your router may be offline or unreachable. Restart your router by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to fully boot.
Once you reach the login page, you will need your router's username and password. These are usually printed on a sticker on the back or bottom of the router itself. If you have changed the password and forgotten it, you can reset the router to factory settings by holding the reset button for 10 to 15 seconds — this erases all your custom settings and returns it to the defaults printed on the sticker.
Why your gateway address might be different from what you expect
Most home routers use 192.168.1.1 or 192.168.0.1 as the default gateway, but some manufacturers use different addresses. Netgear routers often use 192.168.0.1, while TP-Link routers frequently use 192.168.0.1 as well, but some use 192.168.1.1. A few older or specialty routers may use completely different ranges.
The address your router actually uses depends on how it was configured when it was first set up. If you did not change it yourself, it is almost certainly the manufacturer's default. Running the commands above will always show you the correct address for your specific setup, regardless of the brand or model.
Troubleshooting if you cannot find your gateway
If the commands above do not show a gateway address, your network connection may not be active. Check that you are actually connected to your Wi-Fi network or that your Ethernet cable is plugged in. On Windows, look for a network icon in the system tray at the bottom-right of the screen. On Mac, check the Wi-Fi icon in the top-right corner.
If you are connected but still see no gateway, your network may be misconfigured. Restart your router and your computer, then run the command again. If the problem persists, you can usually reach your router by typing 192.168.1.1 or 192.168.0.1 directly into your browser — one of these addresses works for most home routers, even if the command does not report it correctly.
Frequently Asked Questions
Is my default gateway the same as my router's IP address?
Yes. The default gateway is your router's address on your local network. When you log into your router's settings, you are connecting to this address. It is the same thing.
Can I change my default gateway address?
Yes, but you should not do it unless you have a specific reason. You can change it in your router's settings, but doing so can break your network if you make a mistake. Most people never need to change it.
What if I see multiple default gateways?
You may see different gateways for different network connections — for example, one for Wi-Fi and one for Ethernet. Use the gateway that corresponds to the connection you are actually using. If you are on Wi-Fi, use the gateway listed under your Wi-Fi adapter.
Do I need to know my gateway address to use the internet?
No. Your computer finds and uses the gateway automatically. You only need to know the address if you want to log into your router to change settings, check what devices are connected, or troubleshoot network problems.
Is it safe to share my default gateway address with someone?
The gateway address itself is not sensitive — it is visible to anyone on your network. However, do not share your router's login password. If someone has both the address and the password, they can change your network settings or see what devices are connected.