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 sends data to a website or another network, it goes through the gateway first. If your internet is slow, your WiFi keeps dropping, or you need to change your router settings, you'll need this address.
The gateway address is a set of numbers like 192.168.1.1 or 10.0.0.1. It's different from your IP address (which identifies your specific device) and different from your DNS server (which translates website names into numbers). Your computer already knows where the gateway is — you just need to find what number it's using.
Key Takeaways
- Your default gateway address is stored in your computer's network settings and can be found in under a minute using built-in tools.
- On Windows, open Command Prompt and type ipconfig to see the gateway listed as "Default Gateway".
- On Mac, open System Preferences, go to Network, select your connection, and click Advanced to find the router address.
- Once you have the address, type it into your web browser to log into your router and change settings like WiFi password or channel.
- If you see 0.0.0.0 or no gateway listed, your computer is not connected to the network properly.
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. Your computer will display a list of network information.
Look for the section labeled with your connection type — usually "Ethernet adapter" if you're plugged in with a cable, or "Wireless LAN adapter" if you're on WiFi. Find the line that says Default Gateway. The number next to it is your gateway address. Write it down or take a screenshot.
If you see multiple adapters listed, find the one that shows an IP address (a number like 192.168.x.x). The gateway for that adapter is the one you need. If you don't see a Default Gateway line at all, your computer is not currently connected to a network.
Finding your gateway on Mac
Click the Apple menu in the top left corner and select System Settings (or System Preferences on older versions). Click Network in the sidebar.
Select the connection you're using — either WiFi or Ethernet — and click the Advanced button in the bottom right. Go to the TCP/IP tab. The number next to Router is your default gateway address.
Finding your gateway on Linux
Open a terminal window. Type ip route and press Enter. Your computer will show a list of routes. Look for the line that starts with default via — the number immediately after "via" is your default gateway.
If that command doesn't work, try route -n instead. Look for the line 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 — for example, 192.168.1.1 — and press Enter. You'll be taken to your router's login page. Most routers use a default username and password like admin/admin or admin/password, though this varies by manufacturer.
Once logged in, you can change your WiFi password, switch the WiFi channel to reduce interference, restart the router, or check which devices are connected. If you don't know the login details, look for a sticker on the back or bottom of your router — it usually has the default credentials printed on it.
If you can't log in with the default password, you may need to reset the router to factory settings. This erases all your custom settings, so it should be a last resort. Most routers have a small reset button you hold down for 10 to 15 seconds while the router is powered on.
Troubleshooting when the gateway won't show up
If you run the commands above and see no gateway, or see 0.0.0.0, your computer is not connected to the network. Check that your WiFi is turned on or that your ethernet cable is plugged in firmly on both ends.
Restart your router by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully start up, then run the command again. If you still see no gateway after reconnecting, your router may not be working. Try connecting a different device to the same network to see if it can find the gateway.
If one device can connect and another cannot, the problem is with the device that can't connect, not the router. Restart that device and try again. If all devices lose the gateway at the same time, unplug the router, wait 30 seconds, and plug it back in.
Frequently Asked Questions
Is my default gateway the same as my IP address?
No. Your IP address identifies your specific device on the network (like 192.168.1.5). Your default gateway is the router or device that connects your network to the internet (like 192.168.1.1). They're usually on the same network but different numbers.
Can I change my default gateway?
Not directly — your computer automatically uses the gateway that your router announces. You can change which router your computer connects to (by switching WiFi networks), but you cannot manually change the gateway address without advanced network configuration that most users should not attempt.
What if my gateway address starts with 10.0 instead of 192.168?
Both are normal. Different routers use different address ranges. 192.168.x.x and 10.x.x.x are both private network ranges. The exact range depends on your router model and how it was set up. The process to log in is the same — just use whatever number your computer shows.
Do I need my gateway address to connect to WiFi?
No. Your computer finds and connects to WiFi automatically. You only need the gateway address if you want to log into your router to change settings like the WiFi password or network name.
What if I forget my gateway address?
You can find it again anytime by running ipconfig (Windows), checking System Settings (Mac), or typing ip route (Linux). The address doesn't change unless you manually reconfigure your router, so you can write it down and keep it somewhere safe.