Your gateway IP address is the router's address on your network, and you find it through your operating system's network settings

Your gateway IP address is the numerical address of your router — the device that connects your home network to the internet. When your computer needs to send data outside your local network, it sends it to this gateway first. Finding it takes less than a minute and requires no special tools, just access to your network settings.

The process differs slightly between Windows, Mac, and Linux, but the information is always stored in the same place: your operating system's network configuration. You do not need administrator access on most systems, though some steps may ask for your password.

Key Takeaways

  • Your gateway IP address is your router's address on the local network, usually something like 192.168.1.1 or 192.168.0.1.
  • On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway".
  • On Mac, go to System Settings, select Network, choose your connection, and click Details to see the router address.
  • On Linux, open a terminal and type ip route or route -n to see the gateway listed as "default via".
  • Write down your gateway address before you need it — you will need it to log into your router for security changes or troubleshooting.

Finding the gateway on Windows 10 and 11

Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. Type ipconfig and press Enter. The output will show 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 on Wi-Fi. Under that section, find the line that says "Default Gateway". The address next to it is your router's IP address. It will typically look like 192.168.1.1, 192.168.0.1, or 10.0.0.1.

If you see multiple network connections listed, focus on the one that shows an IPv4 Address (the four-number format). That is the connection your computer is actually using. The gateway for that connection is the one you need.

Finding the gateway on Mac

Click the Apple menu in the top-left corner and select System Settings. Click Network in the left sidebar. Select the connection you are using — either Wi-Fi or Ethernet — and click Details.

In the Details window, click the TCP/IP tab at the top. Look for the line labeled "Router". The address shown there is your gateway IP address. On most home networks this will be 192.168.1.1 or 192.168.0.1.

If you do not see a Details button, your connection may not be active. Make sure you are connected to your network first, then try again.

Finding the gateway on Linux

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

If that command does not work on your system, try route -n instead. This shows the same information in a different format. Look for the row where the Destination column shows 0.0.0.0 or default. The Gateway column in that row is your router's address.

Some older Linux systems may require sudo before the command, though most modern distributions show this information without elevated permissions.

What to do once you have the address

Write down your gateway IP address somewhere you can find it later — a notes app, a piece of paper, or a password manager. You will need this address whenever you want to log into your router to change settings, update the firmware, or troubleshoot network problems.

To log in, open a web browser on any device connected to your network, type the gateway address into the address bar (for example, 192.168.1.1), and press Enter. Your router will ask for a username and password. The default credentials are usually printed on a sticker on the router itself, or in the manual that came with it.

Do not share this address with anyone outside your household. While the address itself is not a security risk — anyone on your network can see it — the router login page is where you control your network's security settings.

When the gateway address looks different

Most home routers use addresses that start with 192.168 or 10.0, but some use 172.16 or other ranges. This is normal and depends on how your router is configured. The important thing is that it is a private IP address — one that only works on your local network, not on the internet.

If you see an address that starts with a number above 223, or if you see something that does not look like four numbers separated by periods, you may be looking at the wrong line in the output. Check again for "Default Gateway", "Router", or "default via" depending on your operating system.

If your computer shows no gateway address at all, it may not be connected to the network. Check your Wi-Fi or ethernet connection and try again.

Frequently Asked Questions

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

No. Your gateway address is your router's address on your home network only. Your public IP address is what the internet sees when you connect, and it is 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 IP address?

Yes, but you should not unless you have a specific reason. Changing it requires logging into your router and modifying the LAN settings. If you change it incorrectly, you may lose access to your router. Leave this setting alone unless you are following instructions from your router's manual or a network technician.

What if I forgot my router login password?

Most routers have a reset button on the back or bottom. Holding it for 10 to 15 seconds will reset the router to factory defaults, including the password. This will erase any custom settings you made, so use this only as a last resort. Check your router's manual for the exact reset procedure.

Do I need the gateway address to connect to Wi-Fi?

No. You need the Wi-Fi network name and password to connect to Wi-Fi. The gateway address is only needed if you want to log into the router itself to change settings or troubleshoot problems.