Your default gateway is the device that sends your computer's traffic to the rest of the internet

When your computer wants to reach a website, send an email, or connect to a server outside your home or office network, it needs a way out. The default gateway is the address of the device — almost always your router — that handles that job. Without it, your computer can only talk to other devices on the same local network.

Think of it like a postal system. Your computer is a house on a street. Other computers on your network are neighbors on the same street. The default gateway is the post office that takes your mail and routes it to addresses outside the neighborhood. If you don't tell your computer where the post office is, letters to the outside world just sit on your porch.

Every device that connects to the internet — your laptop, phone, printer, smart TV — has a default gateway setting. Most of the time, your router assigns this automatically when you connect, and you never see it. But when something stops working, or when you're setting up a network manually, knowing what it is and where to find it matters.

Key Takeaways

  • Your default gateway is usually your router's local address, most commonly 192.168.1.1 or 192.168.0.1, and it acts as the exit point for traffic leaving your network.
  • Devices receive their default gateway setting automatically from your router in most home and office setups, so you rarely need to set it manually.
  • If your default gateway is missing or wrong, your device can reach other computers on the same network but cannot reach the internet.
  • You can find your device's default gateway by checking your network settings on Windows, Mac, or mobile devices, or by looking at your router's documentation.

How the default gateway moves your data

When your computer sends data, it first checks whether the destination address is on the same local network as you. If it is, the data goes directly to that device. If it is not — if you are trying to reach Google, your bank, or a server across the country — your computer packages up the data and sends it to the default gateway address instead.

Your router receives that data at the gateway address, looks at where it is supposed to go, and forwards it onward through your internet service provider's network. The response comes back the same way: through your ISP, into your router, and then to your computer. Your computer knows to expect the return traffic because it sent the original request through the gateway.

This happens invisibly and instantly. You do not see it happening, and you do not need to do anything to make it work. But the default gateway address has to be correct, or the whole chain breaks. If your computer does not know where the gateway is, it has nowhere to send traffic that leaves the local network.

Where to find your default gateway on Windows

On a Windows computer, the quickest way to see your default gateway is through the Command Prompt. Press the Windows key and type cmd, then press Enter. In the black window that opens, type ipconfig and press Enter.

Look for the section labeled with your network name or "Ethernet" if you are plugged in with a cable. You will see several lines of information. Find the line that says Default Gateway. The address next to it — usually something like 192.168.1.1 — is your default gateway. If that line is blank or missing, your device does not have a default gateway assigned, which is why you cannot reach the internet.

If you prefer not to use the command line, you can also find it through Settings. Go to Settings, then Network & Internet, then Status. Scroll down and click View your network properties. Look for the entry labeled IPv4 Default Gateway.

Where to find your default gateway on Mac and Linux

On a Mac, open System Preferences and go to Network. Select the network connection you are using — Wi-Fi or Ethernet — and click Advanced. Go to the TCP/IP tab. The Router field shows your default gateway address.

On Linux, open a terminal and type route -n or ip route. Look for the line that shows default via followed by an IP address. That address is your default gateway. Different Linux distributions may display this slightly differently, but the command will show the same information.

Where to find your default gateway on phones and tablets

On an iPhone or iPad, go to Settings, then Wi-Fi. Tap the information icon (the small "i" in a circle) next to the network you are connected to. Scroll down to find Router. That address is your default gateway.

On Android, go to Settings, then Wi-Fi. Long-press the network you are connected to and tap Manage. Look for Gateway in the advanced options. Some Android versions label this differently, so you may need to look for Router or check under IP settings.

What happens when your default gateway is wrong or missing

If your device has no default gateway, or if the gateway address is incorrect, you will lose internet access even though your device is connected to the network. You can still see and reach other computers and printers on your local network, but anything outside that network becomes unreachable.

This usually happens when a device does not receive its settings from your router automatically — a problem called DHCP failure. It can also happen if you manually typed in the wrong address, or if your router's address changed and your device is still looking for the old one.

The fix is usually simple: restart your device, which forces it to ask your router for settings again. If that does not work, you can manually set the default gateway to match your router's address. Check your router's documentation or the label on the back of the router to find the correct address, then enter it in your device's network settings.

Why your router is almost always the default gateway

In a home or small office network, your router is the only device that connects to the outside world. It is the only logical choice for a default gateway. Your router has one connection to your ISP and another connection to your local network. Every device on your network sends outbound traffic to the router, and the router forwards it to your ISP.

In larger networks, there might be multiple gateways or a more complex routing setup, but the principle is the same: the default gateway is the device closest to you that knows how to reach the rest of the internet. For you, that is your router.

Frequently Asked Questions

What if my default gateway address is different from my router's address?

This usually means your device is on a different subnet than your router, or your network is set up in an unusual way. Check that your device's IP address starts with the same numbers as your router's address — for example, if your router is 192.168.1.1, your device should be 192.168.1.something. If they do not match, your device may be on a guest network or a different part of your network.

Can I change my default gateway manually?

Yes, but you should not need to in a normal setup. If you do change it, make sure the address you enter is actually a device on your network that can reach the internet — usually your router. Entering a wrong address will break your internet connection. It is safer to let your router assign the default gateway automatically.

Is my default gateway the same as my router's IP address?

In most home networks, yes. Your router's local IP address and your default gateway address are the same thing. Your router is the gateway. However, in some advanced setups, they might be different. Check your router's documentation if you are unsure.

Why does my phone have a different default gateway than my computer?

It should not, if both devices are on the same network. If they are different, one device may be connected to a guest network, a different Wi-Fi network, or a cellular connection instead of Wi-Fi. Check which network each device is actually connected to.

What does it mean if the default gateway shows 0.0.0.0?

An address of 0.0.0.0 means your device does not have a valid default gateway. This usually happens when your device failed to get network settings from your router. Restart your device or forget the network and reconnect to it, which forces your router to send the settings again.