Your default gateway is the router's address on your network
Your default gateway is the IP address of your router — the device that connects your home network to the internet. When your computer needs to send data outside your local network, it sends that data to the gateway first. Finding this address takes less than a minute on any device, and you need it to log into your router's settings, troubleshoot connection problems, or understand what's happening on your network.
The gateway address is usually something like 192.168.1.1 or 192.168.0.1, but the exact number depends on how your router was set up. You do not need to change it — you just need to know what it is so you can access your router's control panel.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway" under your active network connection.
- On Mac, open System Preferences, select Network, choose your connection, and click Advanced — the gateway address appears under the TCP/IP tab.
- On Linux, open a terminal and type ip route or route -n, then look for the line starting with "default via".
- Once you have the gateway address, type it into your web browser's address bar to reach your router's login page.
- If you cannot remember your router's password, you can reset it by holding the reset button for 10 to 15 seconds, though this erases all your settings.
Finding the gateway on Windows
Open the Start menu and search for "Command Prompt". Click the result to open a black window where you can type commands. Type ipconfig and press Enter. A list of network information will appear on the screen.
Look for the section labeled with your network connection name — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are using Wi-Fi. Under that section, find the line that says "Default Gateway" followed by a number. That number is your router's address. Write it down or take a screenshot.
If you see multiple network connections listed, find the one that shows "IPv4 Address" with a number starting with 192.168 or 10. The Default Gateway for that connection is the one you need.
Finding the gateway on Mac
Click the Apple menu in the top-left corner and select "System Preferences" (or "System Settings" on newer versions). Click "Network" in the left sidebar. You will see a list of connections — select the one you are currently using, either "Wi-Fi" or "Ethernet".
Click the "Advanced" button in the bottom-right corner. A new window opens with several tabs at the top. Click the "TCP/IP" tab. The gateway address appears in the field labeled "Router". That is your default gateway.
Finding the gateway on Linux
Open a terminal window. Type ip route and press Enter. A list of routes will appear. Look for the line that starts with "default via" — the number when ready after "via" is your default gateway address.
If that command does not work, try route -n instead. Look for the line where the "Destination" column shows "0.0.0.0" and the "Gateway" column shows an IP address. That IP address is your default gateway.
What to do once you have the gateway 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. The browser will take you to your router's login page. You will be asked for a username and password.
If you have never changed the password, try the defaults printed on a sticker on the back or bottom of your router. Common defaults are "admin" for both username and password, or "admin" and "password". If you changed the password and cannot remember it, you can reset the router by holding a small reset button (usually recessed into the case) for 10 to 15 seconds. This erases all your settings and returns the router to factory defaults, so only do this if you are prepared to set it up again from scratch.
Why you might need the gateway address
The most common reason to find your gateway is to log into your router and change your Wi-Fi password, update the router's firmware, or see which devices are connected to your network. You might also need it to troubleshoot a connection problem — sometimes restarting the router through its control panel works when unplugging it does not.
If your internet is slow or unstable, checking your router's settings can help you see whether the problem is with your Wi-Fi channel, your internet service provider's connection, or something else. Your gateway address is the first step to getting into those settings.
If you cannot find the gateway address
If the commands above do not show a gateway address, your device may not be connected to the network. Check that your Wi-Fi is turned on or that your ethernet cable is plugged in, then try the command again.
If you are still stuck, look at the physical router itself. Most routers have a sticker on the back or bottom that lists the gateway address, the Wi-Fi name, and the default password. The address is often labeled "IP Address" or "Default Gateway". If you cannot find a sticker, search online for your router's model number — the manufacturer's website usually lists the default gateway address in the setup guide.
Frequently Asked Questions
Is the default gateway the same as my Wi-Fi name?
No. Your Wi-Fi name (called the SSID) is what you see when you search for networks on your phone or laptop. The default gateway is the router's internal address on your network. You need the gateway address to log into the router's settings, not to connect to Wi-Fi.
Will finding my gateway address change anything on my network?
No. Looking up your gateway address is read-only — it does not change any settings or affect your network. You only make changes if you log in and intentionally modify something in the router's control panel.
What if my gateway address starts with 10 instead of 192.168?
That is fine. Different routers use different address ranges. Addresses starting with 10, 172.16, or 192.168 are all private addresses used only on your local network. The exact number does not matter — just type whatever address your ipconfig, System Preferences, or ip route command shows into your browser.
Can I change my default gateway address?
You can change it through your router's settings, but there is almost no reason to do so. Changing it can break your network if you do not know what you are doing. Leave it at the default unless you have a specific reason and understand the consequences.
Do I need the gateway address to connect to Wi-Fi?
No. You only need your Wi-Fi password to connect to the network. The gateway address is only needed if you want to log into the router itself to change settings or troubleshoot problems.