Your gateway address is the IP address of the device that connects your computer to the rest of the network and the internet

On most home networks, this is your router. On a work network, it might be a larger device managed by your IT department. You need this address if you're troubleshooting network problems, changing router settings, or trying to understand why your internet isn't working the way you expect.

The steps to find it differ slightly depending on whether you use Windows, Mac, or Linux, but the information is always stored in the same place: your computer's network settings. You don't need special software or administrator access on most systems — just a few clicks or typed commands.

Key Takeaways

  • Your gateway address is usually your router's IP address, typically something like 192.168.1.1 or 192.168.0.1 on home networks.
  • On Windows, you can find it by opening Command Prompt and typing ipconfig, then looking for the line labeled "Default Gateway".
  • On Mac, open System Settings, go to Network, select your connection, and click Details to see the router address.
  • On Linux, open a terminal and type ip route or route -n to see the gateway listed as "default via".
  • Once you have the address, you can type it into your web browser's address bar to access your router's settings page.

Finding your gateway on Windows

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

Type ipconfig and press Enter. Your computer will display a list of network information. Look for the section labeled with your active connection — usually "Ethernet adapter" if you're plugged in with a cable, or "Wireless LAN adapter" if you're using Wi-Fi. Under that section, find the line that says Default Gateway. The number next to it is your gateway address. It will look something like 192.168.1.1 or 10.0.0.1.

If you see multiple network adapters listed, focus on the one that shows an IPv4 Address (a number like 192.168.x.x). That's the one currently connecting you to your 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). Then click Network in the sidebar.

Select the connection you're using — either Wi-Fi or Ethernet depending on how you're connected. Once selected, click the Details button. A new window will open showing your network details. Look for the line labeled Router. The IP address next to it is your gateway address.

If you don't see a Details button, try clicking Advanced instead, then look for the TCP/IP tab at the top of the window.

Finding your gateway on Linux

Open a terminal window. The exact way to do this depends on your Linux distribution, but it's usually available in your applications menu or by right-clicking on the desktop.

Type ip route and press Enter. Your gateway address will appear on the first line, after the word default via. For example, you might see default via 192.168.1.1 dev eth0 — the gateway is the number after "via".

If that command doesn't work, try route -n instead. Look at the line where the Destination column shows 0.0.0.0 or default. The Gateway column on that line is your gateway address.

What to do once you have your gateway address

The most common reason to find your gateway address is to log into your router's settings page. Open any web browser and type your gateway address into the address bar — for example, 192.168.1.1 — and press Enter. Your router's login page should appear.

You'll need a username and password to access the settings. If you've never changed these, they're usually printed on a sticker on the back or bottom of your router. Common defaults are admin/admin or admin/password, though this varies by manufacturer. If you've forgotten them, you can usually reset the router by holding down a small reset button for 10 to 15 seconds, which will erase all custom settings and restore the defaults.

If you're trying to troubleshoot a network problem, knowing your gateway address helps you understand whether the issue is with your computer, your router, or your internet service provider. If you can reach the gateway address but can't reach the internet, the problem is usually with your internet connection itself. If you can't reach the gateway address, the problem is usually with your local network or router.

When your gateway address doesn't appear

If you follow the steps above and don't see a gateway address, your computer might not be connected to a network at all. Check that you're either plugged in with an Ethernet cable or connected to a Wi-Fi network. If you are connected and still don't see a gateway, your network might not be set up correctly.

On Windows, if ipconfig shows an IPv4 Address that starts with 169.254, your computer is not receiving a valid network address from the router. Try unplugging your router for 30 seconds, then plugging it back in and waiting two minutes for it to restart. Then run ipconfig again.

On Mac or Linux, if you see no gateway listed at all, try restarting your computer and checking again. If the problem persists, your network connection may need to be reconfigured, which usually requires help from your IT department on a work network or from your internet service provider on a home network.

Frequently Asked Questions

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

On most home networks, yes — your gateway address is your router's IP address. On larger networks, the gateway might be a different device, but the concept is the same: it's the device that routes traffic between your computer and the outside network.

Can I change my gateway address?

Not directly. Your gateway address is assigned by your router or network administrator. You can change your router's IP address by logging into the router's settings page, but this is rarely necessary and can break things if done incorrectly. Leave it alone unless you have a specific reason to change it.

Why do I see multiple gateway addresses?

If you have multiple network connections active at the same time — for example, both Ethernet and Wi-Fi — you might see different gateway addresses for each. Your computer uses the one associated with whichever connection is currently active. Check which connection is listed as "connected" or "active" in your network settings.

Is my gateway address private or public?

Your gateway address is a private IP address used only on your local network. It's not visible to the internet. Your public IP address — the one the rest of the internet sees — is different and is assigned by your internet service provider.

What if I can't log into my router using the gateway address?

Make sure you're typing the address correctly into your browser's address bar, not a search engine. If the page doesn't load, try typing http:// before the address. If you still can't reach it, your router might be offline or your network connection might be broken. Try restarting both your computer and your router.