Your gateway address is the IP address of the device that connects your computer to the rest of the internet — usually your router

Every device on your home network needs a way out to the wider internet. That exit point is your gateway, and it's almost always your router. Finding this address takes less than a minute on any device, and you'll need it if you're troubleshooting connection problems, setting up a VPN, or configuring network security settings.

The gateway address is a four-part number like 192.168.1.1 or 10.0.0.1. It's different from your public IP address (the one the outside world sees) and different from your device's own local IP address. Your router sits between your devices and your internet service provider, so it acts as the gateway for all traffic leaving your home network.

Key Takeaways

  • Your gateway address is your router's local IP address, found through your operating system's network settings in under a minute.
  • On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway".
  • On Mac and Linux, open Terminal and type ip route or route -n to see your gateway listed as the default route.
  • The gateway address is usually something like 192.168.1.1, 192.168.0.1, or 10.0.0.1, depending on your router's configuration.
  • Once you have the gateway address, you can enter it into a web browser to access your router's settings page for security or troubleshooting.

Finding your gateway on Windows

Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. In the black window that opens, type ipconfig and press Enter. You'll see a block of information for each network connection on your computer.

Look for the section labeled "Ethernet" if you're using a wired connection, or "Wireless LAN adapter" if you're on Wi-Fi. Within that section, find the line that says "Default Gateway" — the number next to it is your gateway address. If you see multiple network connections listed, your gateway address will be the same for all of them.

If you don't see a Default Gateway line, your computer may not be connected to a network, or your network connection is misconfigured. Check that you're connected to Wi-Fi or that your ethernet cable is plugged in, then run ipconfig again.

Finding your gateway on Mac

Open Terminal by pressing Command and Space, typing terminal, and pressing Enter. In the Terminal window, type netstat -nr | grep default and press Enter. The first number in the output is your gateway address.

Alternatively, you can type route -n get default for a clearer display. Look for the line that says "gateway:" — the IP address next to it is what you're looking for. This method works on any recent version of macOS.

Finding your gateway on Linux

Open a Terminal window and type ip route, then press Enter. Your default gateway will be listed on the first line, after the word "via". The number appears as something like "via 192.168.1.1".

If that command doesn't work on your system, try route -n instead. Look for the line where the Destination column shows "0.0.0.0" or "default" — the Gateway column on that line is your answer. Different Linux distributions may format the output slightly differently, but the gateway address will always be present in one of these commands.

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, type your gateway address into the address bar (for example, 192.168.1.1), and press Enter. You'll be prompted for a username and password — these are usually printed on a sticker on the back or bottom of your router, or they may be in the documentation that came with it.

From the router's settings page, you can change your Wi-Fi password, adjust security settings, restart the router, check which devices are connected, or update the router's firmware. If you're troubleshooting a slow connection or a device that won't connect, the router's settings page often shows useful diagnostic information.

If you can't reach the settings page, double-check that you typed the gateway address correctly and that you're on the same Wi-Fi network as the router. If the page still won't load, your router may need to be restarted — unplug it for 30 seconds, plug it back in, and wait two minutes for it to fully boot up before trying again.

When your gateway address looks unusual

Most home routers use gateway addresses that start with 192.168 or 10.0, but some use 172.16 or other ranges. This variation depends on how your router was configured and doesn't affect how it works. As long as the address is a valid local IP (four numbers between 0 and 255, separated by dots), it's correct.

If you see multiple gateway addresses listed, you may have multiple network connections active — for example, both ethernet and Wi-Fi. Each connection can have its own gateway, though in a home network they're usually the same. If you're troubleshooting a specific connection, use the gateway address from that connection's section in the output.

Frequently Asked Questions

Is my gateway address the same as my public IP address?

No. Your gateway address is your router's local address on your home network (like 192.168.1.1). Your public IP address is what the internet sees when you connect, assigned by your internet service provider. You can find your public IP by searching "what is my IP" in any search engine.

Can I change my gateway address?

Yes, but you shouldn't unless you have a specific reason. Changing it requires accessing your router's settings and modifying the LAN IP configuration. If you do change it, all your devices will need to reconnect to the network. Most people never need to change it.

What if I forgot my router's login password?

Most routers have a reset button you can hold for 10 to 15 seconds to restore factory settings, which resets the password to the default printed on the router. Be aware that resetting also erases any custom settings you've made, like Wi-Fi name or security settings. Check your router's manual for the exact reset procedure.

Does knowing my gateway address pose a security risk?

Your gateway address is only useful to someone already on your network. It's not a secret — anyone connected to your Wi-Fi can find it using the same commands you just used. The real security comes from a strong Wi-Fi password and keeping your router's firmware updated.