Your default gateway is the router's address your device uses to reach the internet

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

The steps differ slightly depending on whether you use Windows, Mac, or Linux, but the information is always stored in the same place: your network settings. You do not need administrator permission on most systems, though some versions of Windows may ask for it.

Key Takeaways

  • Your default gateway is your router's IP address, usually something like 192.168.1.1 or 192.168.0.1, and you can find it in your network settings without any special software.
  • On Windows, open Command Prompt and type ipconfig, then look for the line labeled "Default Gateway" in the results.
  • On Mac, go to System Settings, select Network, choose your connection, and click Details to see the router address listed as "Router".
  • On Linux, open a terminal and type ip route or route -n to see the gateway listed as "default via".
  • If you see multiple gateways listed, you likely have both wired and wireless connections active — each shows its own gateway address.

Finding your gateway on Windows

Open Command Prompt by pressing the Windows key, typing cmd, and pressing Enter. Type ipconfig and press Enter. The results will show all your network connections. Look for the section labeled with your connection type — either "Ethernet adapter" if you are wired, or "Wireless LAN adapter" if you are on Wi-Fi.

Within that section, find the line that says "Default Gateway" followed by a series of numbers separated by periods. That number is your gateway address. It typically looks like 192.168.1.1, 192.168.0.1, or 10.0.0.1. If you see multiple gateway addresses listed, your computer has more than one network connection active.

If Command Prompt does not appear or you see an error, try right-clicking on Command Prompt and selecting "Run as administrator" before typing the command again.

Finding your gateway on Mac

Click the Apple menu in the top-left corner and select "System Settings" (or "System Preferences" on older versions). Click "Network" in the sidebar. Select the connection you want to check — either "Wi-Fi" or "Ethernet" — then click the "Details" button.

In the window that opens, click the "TCP/IP" tab at the top. Look for the field labeled "Router" — the address shown there is your default gateway. On some Mac versions, you may need to click "Advanced" first to see additional network details.

If you do not see a Details button, your Mac may be using a newer interface. In that case, click the connection name and look for a "Details" or "Advanced" option in the panel that appears on the right side of the screen.

Finding your gateway on Linux

Open a terminal window. Type ip route and press Enter. The output will show several lines of routing information. Look for the line that begins with "default via" — the IP address that follows those words is your default gateway.

If that command does not work, try route -n instead. This shows the same information in a table format. Look at the "Gateway" column in the row where the "Destination" column shows "0.0.0.0" or "default". That address is your gateway.

Different Linux distributions may format the output slightly differently, but both commands work on most systems. If neither command produces output, your system may not have a gateway configured, which usually means you are not connected to a network.

What to do once you have your gateway address

Once you have the address, you can use it to access your router's settings page. Open a web browser, 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 — these are usually printed on a sticker on the back or bottom of the router itself.

From the router settings page, you can change your Wi-Fi password, restart the router, check which devices are connected, update firmware, or adjust other network settings. If you forget your gateway address, you can always find it again using the steps above.

You may also need your gateway address if you are troubleshooting network problems with technical support, setting up a VPN, or configuring advanced network features on your computer.

When you see multiple gateway addresses

If the steps above show more than one gateway address, your computer is connected to the network in more than one way — for example, both through Wi-Fi and an Ethernet cable at the same time. Each connection has its own gateway address, and your computer uses one as the primary route to the internet.

This is normal and usually not a problem. If you want to use only one connection, you can disconnect the other one through your network settings. On Windows, go to Settings > Network & Internet and toggle Wi-Fi or Ethernet off. On Mac, go to System Settings > Network and click the minus button next to the connection you want to remove.

Frequently Asked Questions

Is my default gateway the same as my router's IP address?

Yes. The default gateway is your router's IP address on your local network. It is the address your computer uses to communicate with the router, which then connects you to the internet and other networks.

What if I cannot find a default gateway listed?

If no gateway appears in your network settings, your computer is not connected to a network or the connection is not working properly. Check that Wi-Fi is turned on, that you are connected to a network, or that your Ethernet cable is plugged in. Then run the commands again.

Can I change my default gateway address?

The gateway address itself is set by your router and cannot be changed from your computer's network settings. If you need a different gateway address, you would need to change your router's configuration or connect to a different network.

Why do I need to know my default gateway?

You need it to access your router's settings page, to troubleshoot network problems, or to configure advanced network features. Most people do not need it for everyday use, but it is useful information to have when setting up or fixing network issues.

Is my default gateway address private or public?

Your default gateway address is private — it only works on your local network. It is not visible to the internet. The address you see (like 192.168.1.1) is reserved for private networks and cannot be used on the public internet.