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 networks. When your device needs to send data outside your local network, it sends that data to the default gateway first. Finding this address takes less than a minute on any operating system, and you will need it if you want to log into your router's settings, troubleshoot network problems, or configure advanced network features.
The steps differ slightly between Windows, Mac, and Linux, but the information is always stored in the same place: your network configuration settings. You do not need special software or administrator permission on most systems — just the ability to open a command prompt or settings menu.
Key Takeaways
- On Windows, open Command Prompt and type ipconfig to see your default gateway listed as "Default Gateway" in the results.
- On Mac, go to System Settings, select Network, choose your active connection, and look for "Router" in the TCP/IP tab.
- On Linux, open a terminal and type ip route or route -n to find the gateway address listed as "default via".
- Your default gateway is usually a private IP address starting with 192.168, 10.0, or 172.16, and it is the same for all devices on your network.
- Once you have the address, you can type it into a web browser to access your router's login page and settings.
Finding your default gateway on Windows
On Windows, the fastest way is to use Command Prompt. Click the Start menu, type cmd, and press Enter. A black window will open.
In the Command Prompt window, type ipconfig and press Enter. The system will display a list of all your network adapters and their settings. Look for the section labeled with your active connection — usually "Ethernet" if you are plugged in with a cable, or "Wireless LAN adapter Wi-Fi" if you are using Wi-Fi. Under that section, you will see a line that says "Default Gateway" followed by an IP address. That address is what you are looking for. It typically looks like 192.168.1.1 or 192.168.0.1.
If you see multiple network adapters listed, find the one that shows an "IPv4 Address" — that is the active connection, and its default gateway is the one you need.
Finding your default gateway on Mac
On Mac, the information is in System Settings. Click the Apple menu in the top-left corner, select System Settings, then click Network in the sidebar.
You will see a list of network connections on the left side. Click the one you are currently using — usually "Wi-Fi" or "Ethernet". On the right side, click the "Details" button or look for a "TCP/IP" tab. The field labeled "Router" shows your default gateway address.
If you do not see a Details button, the router address may appear directly on the main network screen. If you are connected to multiple networks, make sure you are looking at the active connection — it will have a green dot or "Connected" label next to it.
Finding your default gateway on Linux
On Linux, open a terminal window. The exact method depends on your desktop environment, but you can usually right-click the desktop and select "Open Terminal" or search for "Terminal" in your applications menu.
Type ip route and press Enter. The output will show several lines of routing information. Look for the line that starts with "default via" — the IP address that follows is your default gateway. For example, you might see default via 192.168.1.1 dev wlan0, which means your default gateway is 192.168.1.1.
If ip route does not work on your system, try route -n instead. This older command shows the same information in a table format. Look for the row where the "Destination" column shows 0.0.0.0 or "default" — the "Gateway" column in that row is your default gateway address.
What to do once you have your default gateway address
Once you have the address, you can use it to access your router's settings page. Open a web browser on any device connected to the same network, type the default gateway address into the address bar (for example, 192.168.1.1), and press Enter. You will be taken to your router's login page.
From there, you can change your Wi-Fi password, update your router's firmware, set up port forwarding, or troubleshoot connection problems. Most routers ask for a username and password — if you have not changed these, they are usually printed on a sticker on the back of the router or in the manual that came with it.
Knowing your default gateway is also useful for network troubleshooting. If your internet is not working, you can try pinging your default gateway to see if your device can reach the router. In Command Prompt or Terminal, type ping followed by your gateway address (for example, ping 192.168.1.1). If you get a response, your device is connected to the router. If you do not, there is a problem between your device and the router.
Why your default gateway matters for network security
Your default gateway is the entry point to your local network, which is why it is important to keep it secure. Make sure you change the default username and password on your router as soon as you set it up — many routers come with factory defaults like "admin" and "admin" or "admin" and "password", which are widely known.
You should also check your router's settings periodically to see which devices are connected to your network. If you see devices you do not recognize, they may be unauthorized users accessing your Wi-Fi. Your router's settings page will show you the MAC addresses and IP addresses of connected devices, which can help you identify them.
Keeping your router's firmware up to date is another important security step. Router manufacturers release updates to patch security vulnerabilities, and you can usually set up automatic updates in your router's settings page.
Frequently Asked Questions
What if I see multiple default gateways listed?
You will usually see only one default gateway per active network connection. If you have both Ethernet and Wi-Fi connected at the same time, each will have its own default gateway, but they should be the same address (usually 192.168.1.1). Your device will use whichever connection is active — typically Ethernet if both are plugged in, or Wi-Fi if Ethernet is not available.
Is my default gateway the same as my IP address?
No. Your IP address is your device's unique address on the network (something like 192.168.1.50). Your default gateway is your router's address (usually 192.168.1.1). You can see both when you run ipconfig on Windows or check your network settings on Mac — they will be listed separately.
Can I change my default gateway?
In most home networks, you should not change your default gateway — it is set automatically by your router. However, advanced users can manually set a different gateway in their network settings if they have a specific reason to do so, such as routing traffic through a different device. For most people, leaving it on automatic is the right choice.
What if my default gateway address is not 192.168.x.x?
Some networks use different private IP ranges. Your gateway might start with 10.0 or 172.16 instead of 192.168. All of these are valid private IP addresses. The important thing is that it is a private address (not a public internet address) and that it is the same for all devices on your network.