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. Knowing your gateway's address helps you troubleshoot connection problems, change your Wi-Fi password, or diagnose why certain devices can't reach the internet.

The gateway address is a set of four numbers separated by periods, like 192.168.1.1 or 10.0.0.1. Your computer already knows this address — it's stored in your network settings. You just need to find where it's written down.

Key Takeaways

  • Your default gateway is almost always your router, and you can find its address in your computer's network settings in under a minute.
  • On Windows, open Command Prompt and type ipconfig, then look for the line that says "Default Gateway".
  • On Mac, go to System Settings, click Network, select your connection, and look for "Router" in the details.
  • Once you have the gateway address, you can type it into a web browser to log into your router and change settings.
  • If you see no gateway listed, your computer is not connected to a network, or the connection is broken.

Finding your gateway on Windows

Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open with a blinking cursor.

Type ipconfig and press Enter. The window will fill with 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 Wi-Fi. Under that section, find the line that says Default Gateway. The numbers next to it are your gateway address.

Write down that address or take a screenshot. You can now close Command Prompt. If you see "Default Gateway . . . . . . . . . :" with nothing after it, 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. In the sidebar, click Network

You'll see a list of connection types on the left — Wi-Fi, Ethernet, or others. Click the one you're currently using. On the right side, click the Details button. A new window opens showing your network information. Look for the line labeled Router. The address next to it is your default gateway.

If you don't see a Details button, your connection may not be active. Make sure you're connected to Wi-Fi or have an Ethernet cable plugged in, then try again.

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 number immediately after "via" is your default gateway address.

If you see no output or an error, try route -n instead. Look for the line where the Destination column shows 0.0.0.0. The Gateway column on that line contains your gateway address.

What to do once you have your gateway address

Type your gateway address into the address bar of any web browser — the same place where you'd type a website name. Press Enter. You should see a login page for your router.

If nothing appears, double-check that you typed the address correctly and that you're connected to the network. If you still see nothing, your router may not have a web interface, or it may be offline.

Once you log in (usually with a username and password printed on the router itself), you can change your Wi-Fi name and password, restart the router, check which devices are connected, or adjust other network settings. Different routers have different layouts, but the main settings are usually in a menu labeled Network, Wireless, or Settings.

When your gateway address doesn't appear

If you ran the commands above and saw no gateway address, your computer is not connected to a network. Check that your Ethernet cable is plugged in, or that you're connected to a Wi-Fi network. Then run the command again.

If you're connected but still see no gateway, your router may not be responding. Unplug the router's power cable, wait 30 seconds, and plug it back in. Wait another minute for it to fully restart, then run the command again. If the gateway still doesn't appear, contact your internet provider — the problem may be with their equipment rather than your router.

Frequently Asked Questions

Is my default gateway always my router?

In a home network, yes — almost always. In a business or school network, it might be a different device, but the process to find it is the same. The address you find is whatever device your computer uses to reach the internet.

Can I change my default gateway?

You can change which device your computer treats as the gateway by changing your network settings, but this is rarely necessary and can break your internet connection if done wrong. Most people never need to change it. If you need to change it, contact your network administrator or internet provider first.

What if I forgot my router's password?

Most routers have a reset button on the back. Hold it for 10 to 15 seconds while the router is powered on. This erases all your settings and returns the router to its factory defaults. You'll then need to set up your Wi-Fi name and password again from scratch. Check your router's manual for the exact reset procedure.

Is it safe to share my gateway address with someone?

The gateway address itself is not sensitive — anyone on your network can see it. However, don't share your router's password or login credentials. The address alone won't let someone access your router or Wi-Fi.

Why does my gateway address start with 192.168 or 10.0?

These are private IP address ranges used only on local networks. They're never used on the public internet, so routers can use the same addresses without conflict. Your internet provider assigns a different public address to your router, which is what the outside world sees.