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

The gateway address (also called the default gateway) is the local IP address of your router or network device. When your computer sends data to another computer on a different network, it sends that data to the gateway first — the gateway then forwards it onward. Finding this address takes less than a minute and requires no special software.

You need the gateway address if you want to log into your router's settings, troubleshoot network problems, or understand how your computer connects to the internet. The method differs slightly depending on whether you use Windows, Mac, or Linux, but the information is always in the same place: your network settings.

Key Takeaways

  • On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway" under your active network connection.
  • On Mac, open System Preferences, go to Network, select your connection, and click Advanced — the gateway address appears under the TCP/IP tab.
  • On Linux, open a terminal and type ip route or route -n to see the gateway listed as the default route.
  • The gateway address is usually something like 192.168.1.1 or 192.168.0.1, and it is the same for all devices on your home network.
  • If you see no gateway address or a blank field, your network connection may not be active or properly configured.

Finding the gateway address on Windows

Open the Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open. Type ipconfig and press Enter. The system will display a list of all your network connections.

Look for the section labeled with your active connection — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter" if you are using Wi-Fi. Under that section, find the line that says "Default Gateway". The IP address 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 connections listed, check each one until you find the one with an IP address assigned (the "IPv4 Address" line will show a number). That is your active connection, and its default gateway is what you need.

Finding the gateway address on Mac

Click the Apple menu in the top-left corner and select "System Preferences" (or "System Settings" on newer versions). Click "Network". On the left side, select the connection you are using — either "Wi-Fi" or "Ethernet".

Click the "Advanced" button in the bottom-right corner. A new window will open. Click the "TCP/IP" tab at the top. The "Router" field shows your gateway address. Write down the number you see there.

If the "Advanced" button is grayed out, your connection is not active. Make sure you are connected to your network before checking.

Finding the gateway address on Linux

Open a terminal window. Type ip route and press Enter. The system will display your routing table. Look for the line that starts with "default via" — the IP address that follows is your gateway.

If that command does not work, try route -n instead. Look for the row where the "Destination" column shows 0.0.0.0 or default. The "Gateway" column in that row shows your gateway address.

Different Linux distributions may format the output slightly differently, but the gateway address will always be listed as the default route.

What to do once you have the gateway address

Once you have the gateway address, you can type it into a web browser to access your router's settings page. Open any browser, type the gateway address into the address bar (for example, 192.168.1.1), and press Enter. The router will ask you to log in with a username and password.

From the router settings page, you can change your Wi-Fi password, adjust security settings, restart the router, or see which devices are connected to your network. If you do not know the login password, check the sticker on the back or bottom of your router — the default credentials are often printed there.

You can also use the gateway address to troubleshoot network problems. If your internet is slow or unstable, logging into the router settings lets you see signal strength, check for interference, or restart the device.

Why the gateway address matters for network security

Your gateway address is the entry point to your network. Knowing it helps you monitor what is happening on your network and control who can connect. When you log into your router using the gateway address, you can enable a firewall, turn on WPA3 encryption, or disable remote access — all security features that protect your devices.

If you notice an unfamiliar device connected to your network, you can use the router settings (accessed through the gateway address) to block it. You can also change your Wi-Fi password from there, which forces all devices to reconnect and disconnects anyone who should not be there.

Troubleshooting when you cannot find the gateway address

If the gateway field is blank or shows no address, your network connection is not active. On Windows, make sure you are connected to Wi-Fi or plugged in with an Ethernet cable. On Mac, check that the network status shows "Connected". On Linux, run ip link to see which network interfaces are active.

If you are connected but still see no gateway, your network may not be configured correctly. Restart your router by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully restart, then check your network settings again.

If the problem persists, restart your computer. Sometimes the network settings do not update properly until you reboot. After restarting, check your network settings one more time using the steps above.

Frequently Asked Questions

Is the gateway address the same as my IP address?

No. Your IP address is your computer's unique address on the network (something like 192.168.1.5). The gateway address is your router's address (usually 192.168.1.1). They are different numbers, and you need both to understand how your network works.

Will the gateway address change?

Not usually. Your router's gateway address stays the same unless you manually change it in the router settings. Your computer's IP address may change if your router is set to assign addresses automatically, but the gateway itself is stable.

Can I change my gateway address?

Yes, but you should not unless you know what you are doing. Changing it incorrectly can break your network. If you need to change it, log into your router settings using the current gateway address, find the LAN settings, and change the IP address there. All devices will need to reconnect afterward.

What if my gateway address starts with a different number, like 10 or 172?

That is normal. Different networks use different ranges of private IP addresses. 192.168.x.x is most common in homes, but 10.x.x.x and 172.16.x.x are also valid. The exact number does not matter — what matters is that it is your router's address on your local network.

Do I need the gateway address to use the internet?

Your computer finds and uses the gateway automatically — you do not need to know the address to browse the web or send email. You only need it if you want to log into your router settings or troubleshoot network problems.