What your default gateway is and why you need it
Your default gateway is the device on your network that connects you to the internet — usually your router. When your computer needs to send data outside your home or office network, it sends that data to the gateway first. The gateway then forwards it to your internet service provider and beyond.
You might need to know your gateway address if you're troubleshooting a connection problem, setting up a new device, or logging into your router to change your Wi-Fi password or network settings. The address is a series of four numbers separated by periods, like 192.168.1.1 or 192.168.0.1.
Key Takeaways
- Your default gateway address appears in your network settings on Windows, Mac, or Linux — you do not need to call your internet provider to find it.
- On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway" in the results.
- On Mac, open System Settings, select Network, click your active connection, and look for "Router" in the TCP/IP tab.
- The address is almost always 192.168.1.1 or 192.168.0.1, so if you forget it you can try typing either one into your browser to reach your router.
Finding your gateway on Windows
The fastest way on Windows is through Command Prompt. Right-click the Start button, select "Command Prompt" or "Windows PowerShell", and type ipconfig exactly as written. Press Enter.
A list of network information will appear. Look for the section labeled with your active connection — usually "Ethernet" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on Wi-Fi. Under that section, find the line that says "Default Gateway" followed by a series of numbers. That number is your gateway address. Write it down or take a screenshot.
If you see multiple network adapters listed and are not sure which one is active, look for the one that shows an "IPv4 Address" — that is the connection currently in use.
Finding your gateway on Mac
Open System Settings (or System Preferences on older versions). Click "Network" in the sidebar on the left.
Select the network connection you are currently using — either "Wi-Fi" or "Ethernet" depending on how you are connected. Click the "Details" button or look for a "TCP/IP" tab. You will see a field labeled "Router" with an IP address next to it. That address is your default gateway.
If you do not see a Details button, the information may already be visible on the main Network screen. Look for any field showing an IP address that starts with 192.168 or 10.0.
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 begins with "default via" — the IP address that follows those words is your default gateway.
If that command does not work, try route -n instead. Look for the row where the "Destination" column shows 0.0.0.0 and the "Gateway" column contains an IP address. That is your default gateway.
What to do once you have the address
Once you know your gateway address, you can type it directly into any web browser to reach your router's login page. This is where you change your Wi-Fi name and password, restart your router, or adjust other network settings.
Most routers use a default username and password printed on a sticker on the back or bottom of the device. If you have changed the password before and do not remember it, you can usually reset the router to factory settings by holding down a small reset button for 10 to 15 seconds — this will erase your custom settings and return it to the defaults printed on the sticker.
When the gateway address does not work
If you typed the address into your browser and nothing happened, your router may not be responding. First, check that your device is actually connected to the network — look for a Wi-Fi icon in your system tray or network settings showing an active connection.
If you are connected but the address does not load, try restarting your router by unplugging it for 30 seconds, then plugging it back in. Wait two to three minutes for it to fully restart, then try the address again. If the page still does not load, the router itself may have a hardware problem and may need to be replaced.
The two most common gateway addresses
If you have lost track of your gateway address and cannot access your network settings for some reason, you can try the two addresses that cover the vast majority of home and small office routers: 192.168.1.1 and 192.168.0.1. Type one into your browser address bar. If that does not work, try the other.
If neither of those works, go back to your network settings using the steps above — that is the reliable way to find the exact address your router is using. Some business routers or specialized equipment use different addresses, and guessing will not help you reach them.
Frequently Asked Questions
Is my default gateway the same as my IP address?
No. Your IP address is the address of your device on the network. Your default gateway is the address of your router. They are different numbers. You can see both in your network settings — your device's IP address is usually listed as "IPv4 Address" or just "IP Address", while the gateway is listed separately.
Can I change my default gateway address?
You can change the address your router uses, but this is rarely necessary and can break your network if done incorrectly. Most people should leave this setting alone. If you have a specific reason to change it, consult your router's manual or contact your internet provider.
What if I see multiple default gateways listed?
This can happen if you have multiple network adapters active at the same time. Focus on the gateway for the connection you are actually using — the one that shows an active IPv4 address. The others can be ignored.
Does my default gateway change?
Not usually. Your router's address stays the same unless you manually change it or reset the router to factory settings. Your device's address on the network may change, but the gateway address remains stable.
Why do I need to know this if my internet works fine?
You may not need it at all. But if your internet stops working, or you need to change your Wi-Fi password, or you want to see how much data you are using, knowing how to reach your router's settings page is the fastest way to solve the problem yourself.