Your default gateway is the IP address of your router. It’s the device that connects your computer to the internet. Finding it takes less than 30 seconds once you know where to look.
This guide covers every reliable method to find your default gateway on Windows, explains what it means, and helps you fix common problems along the way.
What Is a Default Gateway?
Your default gateway is the “exit point” of your local network. When your computer sends data to the internet, it sends it through this address first. From there, your router forwards it to the right destination.
In most home networks, the default gateway looks like 192.168.1.1 or 192.168.0.1. In business networks, it can be different.
Think of it like this: your computer is in a building, and the default gateway is the front door. Without it, your traffic has nowhere to go.
Why do you need to find it?
- To log into your router and change settings
- To troubleshoot internet connection problems
- To set up a static IP address
- To check which network interface is active
- To configure a VPN or firewall rule
How to Find Default Gateway on Windows: 5 Methods

Method 1: Use Command Prompt (Fastest Method)
This is the quickest and most reliable way.
Steps:
- Press
Windows + Ron your keyboard - Type
cmdand press Enter - In the black window that opens, type this command and press Enter:
ipconfig
- Look through the output for your active network connection. You will see something like this:
Ethernet adapter Ethernet:
IPv4 Address. . . . . . . : 192.168.1.105
Subnet Mask . . . . . . . : 255.255.255.0
Default Gateway . . . . . : 192.168.1.1
The value next to Default Gateway is what you need.
Tip: If you see multiple adapters listed (Wi-Fi, Ethernet, VPN), find the one that shows an IPv4 address and a gateway. That is your active connection.
Method 2: Use PowerShell
PowerShell gives you cleaner output and more detail.
Steps:
- Press
Windows + Xand select Windows PowerShell or Terminal - Type this command:
Get-NetIPConfiguration
- Look for the IPv4DefaultGateway line under your active adapter.
The output will look like this:
InterfaceAlias : Wi-Fi
IPv4Address : 192.168.1.108
IPv4DefaultGateway : 192.168.1.1
DNSServer : 8.8.8.8
You can also use the classic ipconfig command inside PowerShell. It works the same way.
Method 3: Use Windows Settings (No Command Line)
If you prefer a graphical interface, this method works on Windows 10 and Windows 11.
Steps for Windows 11:
- Click the Start Menu and open Settings
- Go to Network and Internet
- Click on Wi-Fi or Ethernet, depending on your connection
- Click on your connected network name
- Scroll down to the Properties section
- Look for the IPv4 DNS servers and Default gateway fields
| Field | Example Value |
|---|---|
| IPv4 Address | 192.168.1.108 |
| Subnet Mask | 255.255.255.0 |
| Default Gateway | 192.168.1.1 |
| DNS Servers | 8.8.8.8 |
Steps for Windows 10:
- Open Settings from the Start Menu
- Go to Network and Internet
- Click Status, then View your network properties
- Scroll down to find your active adapter and look for Default gateway
Method 4: Use Network and Sharing Center
This is the older Windows method that still works on both Windows 10 and 11.
Steps:
- Right-click the network icon in the taskbar (bottom right)
- Click Open Network and Internet settings
- Click Change adapter options or Network and Sharing Center
- Double-click your active connection (Wi-Fi or Ethernet)
- Click Details…
- Look for IPv4 Default Gateway in the list
This window shows all your network details in one place.
Method 5: Use the Route Print Command
This method shows your full routing table. It is useful if you have multiple network interfaces or VPN connections active.
Steps:
- Open Command Prompt (press
Windows + R, typecmd, press Enter) - Type this command:
route print
- Look for the IPv4 Route Table section
- Find the row where the Network Destination is
0.0.0.0 - The Gateway column in that row is your default gateway
The output looks like this:
IPv4 Route Table
Active Routes:
Network Dest. Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.105 25
The 0.0.0.0 destination means “everything else.” The gateway listed there handles all unmatched traffic, which is your default gateway.
Quick Comparison Table
| Method | Speed | Requires Command Line? | Works On |
|---|---|---|---|
| ipconfig in CMD | Very fast | Yes | All Windows versions |
| PowerShell | Fast | Yes | Windows 10, 11 |
| Windows Settings | Medium | No | Windows 10, 11 |
| Network and Sharing Center | Medium | No | Windows 7, 10, 11 |
| route print | Moderate | Yes | All Windows versions |
What If the Default Gateway Is Missing or Blank?
If the Default Gateway field shows nothing or displays 0.0.0.0, that is a problem. Here is what to check.
Possible causes:
- Your device is connected to Wi-Fi but has no internet
- Your router is off or restarting
- Your DHCP settings have a problem
- A VPN is interfering with your network settings
- Your network adapter has a corrupt configuration
How to fix it:
- Restart your router. Unplug it, wait 30 seconds, plug it back in.
- Release and renew your IP address. Open Command Prompt and run:
ipconfig /releaseipconfig /renew - Reset your TCP/IP stack. Run these commands one at a time:
netsh int ip reset netsh winsock resetThen restart your computer. - Check if DHCP is enabled. In your adapter settings, make sure your IPv4 settings are set to “Obtain an IP address automatically.”
Understanding the Numbers in Your Gateway Address
Most default gateway addresses follow a pattern. Here is what you will commonly see:
| Gateway Address | Common Network Type |
|---|---|
| 192.168.1.1 | Home routers (most common) |
| 192.168.0.1 | Home routers (alternate) |
| 10.0.0.1 | Some ISPs and enterprise networks |
| 172.16.0.1 | Corporate or VPN networks |
| 192.168.100.1 | Some ISP-provided routers |
These are all private IP address ranges. They are never visible from the public internet. Only devices on your local network use them.
If your gateway shows a public IP address (not starting with 192.168, 10., or 172.16-31), you may be on a special network configuration.
How to Log Into Your Router Using the Default Gateway
Once you have the gateway address, you can open your router’s admin panel.
Steps:
- Open any web browser (Chrome, Edge, Firefox)
- Type your default gateway address in the address bar. For example:
http://192.168.1.1 - Press Enter
- A login page will appear
- Enter your router’s username and password
Default router credentials vary by brand:
| Router Brand | Default Username | Default Password |
|---|---|---|
| Netgear | admin | password |
| TP-Link | admin | admin |
| Asus | admin | admin |
| Linksys | admin | admin |
| D-Link | admin | (blank) |
If these do not work, look for a sticker on the bottom of your router. The default credentials are printed there.
For security guidance on managing your router settings, the Cybersecurity and Infrastructure Security Agency (CISA) publishes practical advice at https://www.cisa.gov/secure-our-world/home-network-security.
How to Find the Default Gateway for a Specific Network Adapter
If your computer has both Wi-Fi and Ethernet connected, each may have its own gateway. Here is how to check them separately.
Using Command Prompt:
ipconfig /all
This shows every network adapter and all its details. Look for the one that is actively connected, and note the gateway under that section.
Using PowerShell with a specific adapter:
Get-NetIPConfiguration -InterfaceAlias "Wi-Fi"
Replace "Wi-Fi" with "Ethernet" or the exact name of your adapter if it is different.
How to Set a Static Default Gateway on Windows
If you need your gateway to stay fixed (common for servers, network devices, or advanced setups), you can set it manually.
Steps:
- Open Settings and go to Network and Internet
- Click your connection type (Wi-Fi or Ethernet)
- Click on your network name
- Scroll to IP settings and click Edit
- Change the setting from Automatic (DHCP) to Manual
- Enter your IP address, subnet mask, and gateway manually
- Click Save
When setting a static gateway, make sure the gateway address belongs to the same subnet as your IP address. For example, if your IP is 192.168.1.50 with subnet mask 255.255.255.0, your gateway must be in the range 192.168.1.1 to 192.168.1.254.
Microsoft’s documentation on network configuration in Windows is available at https://learn.microsoft.com/en-us/windows-server/networking/ for deeper reading on advanced setups.
Common Questions About Default Gateways
What is the difference between default gateway and DNS server?
The default gateway routes your traffic to the internet. The DNS server translates website names like google.com into IP addresses. Both are needed for normal internet access. Your router is often both, but they are separate functions.
Is the default gateway the same as the router IP address?
Yes, in most home networks. Your router acts as the gateway for all devices on your network. The gateway IP is the address of the router interface on your local network.
Can I have two default gateways?
Technically, your routing table can have two gateway entries, but Windows will use the one with the lowest metric (priority number). Having two active default routes can cause unpredictable behavior. This is usually only done in advanced or enterprise setups.
Why does my gateway change?
If your network uses DHCP (which most home networks do), your router assigns IP addresses including the gateway dynamically. The gateway itself rarely changes, but your device’s assigned IP might. If you need stability, use a static IP.
What if my default gateway is 169.254.x.x?
That is an APIPA address, which Windows assigns automatically when it cannot reach a DHCP server. It means your computer failed to get a proper IP address from the router. Check your router connection, restart both devices, and run ipconfig /release followed by ipconfig /renew.
Summary
Finding your default gateway on Windows is straightforward once you know the right tool.
The fastest method is ipconfig in Command Prompt. Look for the Default Gateway line under your active adapter. For a graphical approach, use Windows Settings and navigate to your network connection details.
If your gateway is missing, start by restarting your router and releasing or renewing your IP address. If problems persist, reset your network stack with netsh commands.
Once you have the gateway address, you can use it to log into your router, troubleshoot connectivity problems, or configure a static network setup.
Every method in this guide works on Windows 10 and Windows 11 in 2026. Pick the one that fits your situation and get it done.
