What a gateway IP is and why you need it
Your gateway IP address is the address of the device on your network that connects you to the internet — usually your router. When your computer sends data to a website or another network, it goes through the gateway first. Knowing this address helps you log into your router to change WiFi settings, check connected devices, troubleshoot connection problems, or adjust security rules.
The gateway IP is different from your own device's IP address. Your device has a local address (like 192.168.1.5), while the gateway typically has an address like 192.168.1.1 or 192.168.0.1. Most home routers use one of these two addresses by default.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to find the "Default Gateway" listed in the results.
- On Mac, go to System Settings, select Network, choose your connection, and look for "Router" in the TCP/IP tab.
- On Linux, open a terminal and type ip route or route -n to see the gateway address next to "default".
- Once you have the gateway address, type it into a web browser's address bar to access your router's login page.
- If you cannot reach the gateway, check that your device is connected to the network and restart your router.
Finding your gateway IP on Windows
The quickest way on Windows is through Command Prompt. Press the Windows key, type cmd, and press Enter. A black window opens with a blinking cursor.
Type ipconfig and press Enter. The output shows your network settings. Look for the section labeled with your connection type — usually "Ethernet adapter" if you are plugged in with a cable, or "Wireless LAN adapter" if you are on WiFi. Under that section, find the line that says "Default Gateway" followed by an IP address. That address is what you need.
If you see multiple adapters listed, find the one that shows an IP address under "IPv4 Address". The Default Gateway for that adapter is your router's address.
Finding your gateway IP on Mac
On Mac, open System Settings (or System Preferences on older versions). Click Network in the left sidebar.
Select the network connection you are using — either WiFi or Ethernet. Click the Details or Advanced button if it appears. Look for the TCP/IP tab at the top. The field labeled "Router" shows your gateway IP address.
If you do not see a Details button, the Router field may already be visible on the main screen. If you are connected to WiFi, you can also click the WiFi icon in the menu bar at the top right, hold Option, and click your network name to see the router address in a dropdown menu.
Finding your gateway IP on Linux
Open a terminal window. Type ip route and press Enter. The output shows 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. This shows the same information in a different format. Look for the row where the Destination column says "0.0.0.0" or "default". The Gateway column in that row contains your router's address.
Some Linux systems may require sudo before the command. If you see a permission error, try sudo ip route or sudo route -n.
Using your gateway IP to access your router
Once you have the gateway address, open a web browser on any device connected to your network. Type the address into the address bar — for example, 192.168.1.1 — and press Enter.
A login page appears. The default username and password depend on your router's brand. Common defaults are admin/admin, admin/password, or no username with just a password. Check the sticker on the back or bottom of your router for the default credentials, or look up your router model online.
If the login page does not appear, make sure you are connected to the same network as the router. Also check that you typed the address correctly — a single wrong number will not work.
What to do if you cannot reach your gateway
If typing the gateway address into your browser does not open a login page, first check that your device is actually connected to the network. On WiFi, look for the network name in your available networks list. On Ethernet, make sure the cable is plugged in on both ends.
Restart your router by unplugging it for 30 seconds, then plugging it back in. Wait two minutes for it to fully boot up. Try the gateway address again.
If you still cannot connect, the gateway address you found may be incorrect. Run the command again and double-check the address. If the address looks unusual — for example, something like 10.0.0.1 instead of 192.168.x.x — you may be on a different network than you thought, or your network uses a non-standard setup.
Frequently Asked Questions
Is the gateway IP the same as my router's IP address?
Yes. The gateway is the router. When you see "Default Gateway" in your network settings, that is the IP address of your router on the local network.
Can I change my gateway IP address?
You can change your router's IP address by logging in and editing the LAN settings, but this is rarely necessary and can break things if done wrong. Most people should leave it at the default.
Why do I see multiple gateway addresses?
If you have multiple network adapters (for example, both WiFi and Ethernet plugged in), each may show a different gateway. Use the gateway for the connection you are actually using — the one that shows an active IP address.
What if I forgot my router login password?
Most routers have a reset button you can hold for 10 to 15 seconds to restore factory defaults. This erases your custom settings and returns the username and password to the defaults printed on the router. Check your router's manual for the exact reset procedure.
Is it safe to share my gateway IP address?
Your gateway IP is visible to anyone on your network, so it is not a secret. However, do not share your router's login password. Someone with the password can change your WiFi settings or access your network.