What your default gateway is and why you need it

Your default gateway is the device that connects your home network to the internet — almost always your router. When your computer or phone sends data to a website, it goes to the gateway first, which then forwards it out to the wider internet. Knowing your gateway's address matters because it's where you log in to change your WiFi password, see which devices are connected, or adjust security settings.

The gateway address is a set of four numbers separated by dots, like 192.168.1.1 or 192.168.0.1. Your device already knows this address — it uses it automatically every time you go online. You're just finding out what it is so you can type it into a browser and access your router's control panel.

Key Takeaways

  • Your default gateway is your router's address on your home network, and you find it by checking your device's network settings, not by calling your internet provider.
  • On Windows, open Command Prompt and type ipconfig, then look for the line that says "Default Gateway" — the number there is your router's address.
  • On Mac or Linux, open Terminal and type netstat -nr | grep default to see the gateway address in the first column of results.
  • On iPhone or Android, go to Settings, find your WiFi network, and tap it to see the gateway listed as "Router" or "Gateway".
  • Once you have the address, type it into any web browser's address bar to log into your router and change security settings.

Finding your gateway on Windows

Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. A black window will open. Type ipconfig and press Enter. You'll see a block of text that includes your network information.

Look for the section labeled "Wireless LAN adapter WiFi" (or "Ethernet adapter" if you're plugged in with a cable). In that section, find the line that says "Default Gateway" — the number after it is your router's address. Write it down or take a screenshot. That's the address you'll type into your browser to access your router.

Finding your gateway on Mac

Open Terminal by pressing Command + Space, typing terminal, and pressing Enter. Type netstat -nr | grep default and press Enter. You'll see one or two lines of output. The first number in the first line is your default gateway address.

If that command doesn't work, try route -n get default instead. Look for the line that starts with "gateway:" — the number after it is your router's address. Copy it down before you close Terminal.

Finding your gateway on iPhone or iPad

Go to Settings and tap WiFi. Find the network you're currently connected to (it will have a checkmark next to it) and tap the blue information icon next to the network name. A details screen will open showing your IP address and other network information.

Look for the line labeled "Router" or "Gateway" — the number there is your default gateway. If you don't see it on the first screen, scroll down. Write down that number before you leave Settings.

Finding your gateway on Android

Go to Settings and tap WiFi or Network & Internet, depending on your phone's version. Tap the network you're currently connected to — you may need to tap a settings icon or hold down on the network name. A details screen will appear.

Look for "Gateway" or "Router" in the list. The number shown is your default gateway address. Some Android phones show this information under "Advanced" settings within the network details. If you don't see it when ready, check for an Advanced or More Options button on that screen.

What to do once you have your gateway address

Open any web browser — Chrome, Safari, Edge, Firefox, it doesn't matter. Click on the address bar at the top and type your gateway address exactly as you wrote it down. Press Enter. Your router's login page should load.

You'll be asked for a username and password. The default is usually "admin" for both, but check the sticker on the back or bottom of your router — many manufacturers print the login information there. Once you're logged in, you can change your WiFi password, see which devices are connected, or adjust security settings. If you can't remember the password you set, you can reset the router to factory defaults by holding a small reset button for 10 seconds, though this will erase all your custom settings.

Troubleshooting when you can't find your gateway

If the commands above don't show a default gateway, your device may not be connected to the network yet. Check that WiFi is turned on and that you're connected to your home network, not a mobile hotspot or guest network. Then try the command again.

If you're using a wired Ethernet cable instead of WiFi, the gateway address will still appear in the same place — just look under the Ethernet section instead of the WiFi section. If you see multiple networks listed, make sure you're looking at the one you're actually connected to. If you're still stuck, restart your device and try once more — sometimes the network information doesn't display until the connection has been active for a few seconds.

Frequently Asked Questions

Is my default gateway the same as my IP address?

No. Your IP address is your device's address on the network — something like 192.168.1.50. Your default gateway is your router's address — something like 192.168.1.1. They're on the same network but they're different devices. You'll see both when you run ipconfig or check your network settings.

Can I change my default gateway address?

You can change your router's address, but there's almost no reason to. It requires logging into your router and changing the LAN settings, and doing it wrong can lock you out of your router entirely. Leave it at the factory default unless a technician tells you otherwise.

What if my gateway address doesn't work when I type it in the browser?

Make sure you typed it exactly right, with no extra spaces or characters. If it's still not working, try typing http:// before the address — some browsers need that. If the page still won't load, restart your router by unplugging it for 30 seconds, plugging it back in, and waiting two minutes for it to fully start up.

Do I need my gateway address to connect to WiFi?

No. Your device finds and uses the gateway automatically. You only need to know the address if you want to log into your router to change settings. Normal internet use doesn't require you to know it.

Is it safe to share my default gateway address with someone?

The gateway address itself is not sensitive — it's visible to anyone on your network. But don't share your router's login password. If someone has both the address and the password, they can change your WiFi settings or see which devices are connected.