Your gateway address is the IP address of the router or device that connects your computer to the rest of your network and the internet
Every device on a network needs a way to send information beyond itself. That path out goes through a gateway — usually your home router. Finding this address takes less than a minute on any device, and you'll need it if you're troubleshooting network problems, setting up a VPN, or configuring advanced network settings.
The steps differ slightly between Windows, Mac, and Linux, but the information you're looking for is the same: a four-part number like 192.168.1.1 or 10.0.0.1. This guide shows you the fastest way to find it on each system.
Key Takeaways
- Your gateway address is the IP address of your router, and you can find it in your network settings without opening a web browser.
- On Windows, open Command Prompt and type ipconfig to see your gateway listed as "Default Gateway" in seconds.
- On Mac, go to System Settings, select Network, choose your connection, and click Details to find the router address.
- On Linux, open a terminal and type ip route or route -n to see the gateway in the output.
- Once you have the address, you can type it into any web browser to log into your router's settings if needed.
Finding your gateway on Windows
The fastest way on Windows is through Command Prompt. Press the Windows key, type cmd, and press Enter. A black window opens.
Type ipconfig and press Enter. You'll see a block of information about your network connection. Look for the line that says "Default Gateway" — the number next to it is your gateway address. It usually looks like 192.168.1.1 or 192.168.0.1, though it can vary depending on your router.
If you prefer not to use Command Prompt, you can also find it through Settings. Go to Settings > Network & Internet > Wi-Fi (or Ethernet if you're wired). Click on your connection name, then scroll down and click Details. Your gateway address appears under "IPv4 Gateway."
Finding your gateway on Mac
On Mac, open System Settings and click Network in the sidebar. Select the connection you're using — Wi-Fi or Ethernet — and then click Details.
A window opens showing your network information. Click the TCP/IP tab at the top. Your gateway address is listed as "Router" in this window. Write it down or remember it for later use.
If you're using an older version of macOS, the path may be slightly different: go to System Preferences instead of System Settings, but the TCP/IP tab and Router field are in the same place.
Finding your gateway on Linux
Open a terminal window. Type ip route and press Enter. The output shows several lines of routing information. Look for the line that starts with "default via" — the IP address immediately after those words is your gateway.
If that command doesn't work on your system, try route -n instead. This shows a table of routes. Look at the first row under the "Gateway" column — that's your gateway address.
Some Linux systems may require sudo before the command, depending on your permissions. If you see a permission error, try sudo ip route or sudo route -n.
What to do once you have your gateway address
Once you know your gateway address, you can use it to access your router's settings. Open any web browser, type the address into the address bar (for example, 192.168.1.1), and press Enter. You'll be asked for a username and password — usually "admin" and "admin" or "admin" and the password you set when you first installed the router.
From your router's settings page, you can change your Wi-Fi password, restart the router, check which devices are connected, or adjust security settings. If you don't remember your router's login password, you can reset the router to factory settings by holding down the reset button for 10 to 15 seconds, though this erases all your custom settings.
If you're troubleshooting a network problem, knowing your gateway address also helps you tell whether the issue is with your device or with your router. If your device can reach the gateway but can't reach the internet, the problem is likely with your router or internet connection, not your device.
Common reasons your gateway address matters
You might need your gateway address for several reasons. If you're setting up a VPN, some configurations ask for your gateway IP. If you're configuring port forwarding to run a server or access a device remotely, you'll enter settings through your router's interface using this address. Network administrators troubleshooting connectivity issues often start by checking whether devices can reach the gateway.
You may also need it if you're changing your DNS settings, setting up a static IP address, or configuring advanced network security features. In most cases, you won't need to know it — your device finds the gateway automatically — but when you do need it, these steps get you the answer in under a minute.
What if you can't find your gateway address
If the commands above don't show a gateway address, or if the address appears blank, your device may not be connected to a network yet. Check that your Wi-Fi is turned on or that your Ethernet cable is plugged in. Wait a few seconds for the connection to establish, then run the command again.
If you're still not seeing a gateway address after reconnecting, restart your router by unplugging it for 30 seconds, then plugging it back in. Once the lights stop blinking, try the command again. If nothing appears after that, your router may not be working correctly, and you may need to contact your internet service provider or replace the router.
Frequently Asked Questions
Is my gateway address the same as my router's IP address?
Yes. The gateway address and your router's IP address are the same thing. The gateway is simply what your computer calls the router when it's describing the path data takes to leave your network.
Can I change my gateway address?
You can change your router's IP address by logging into the router's settings and editing the LAN (Local Area Network) settings, but this is rarely necessary and can cause problems if you don't know what you're doing. Most people should leave this setting alone.
Is my gateway address private or public?
Your gateway address is private — it only works on your local network. It's not visible to the internet. The address you see (like 192.168.1.1) is reserved for private networks and cannot be used on the public internet.
What if I have multiple network connections?
If you're connected to both Wi-Fi and Ethernet at the same time, you may see multiple gateway addresses. The one that matters depends on which connection you're using. Check your network settings to see which connection is active, or disconnect one to see only the gateway for the connection you care about.
Do I need my gateway address to connect to Wi-Fi?
No. Your device finds and uses the gateway automatically when you connect to Wi-Fi. You only need to know the address if you're troubleshooting, logging into your router, or configuring advanced network settings.