How to Find Your Default Gateway (On Any Device or OS)
Your default gateway is one of those network settings that lives quietly in the background — until you need it. Whether you're troubleshooting a dropped connection, configuring a router, or setting up a static IP, knowing how to find it is a fundamental networking skill. Here's exactly how to do it, across every major platform.
What Is a Default Gateway?
Before diving into the steps, it's worth understanding what you're actually looking for.
A default gateway is the IP address of the router (or network device) that connects your local network to the internet. When your device doesn't know where to send a packet of data, it forwards it to the default gateway, which figures out where it goes next.
In most home networks, the default gateway is your router's local IP address — typically something like 192.168.1.1 or 192.168.0.1. On corporate or enterprise networks, it may be more complex.
How to Find Your Default Gateway on Windows
Using the Command Prompt
This is the fastest method on any Windows version:
- Press Windows + R, type
cmd, and hit Enter - In the Command Prompt window, type:
ipconfig - Press Enter
- Look for the section labeled with your active connection (e.g., Ethernet adapter or Wi-Fi)
- Find the line that reads Default Gateway — the IP address next to it is what you need
The output will show you all active network adapters. If you're connected via both Wi-Fi and Ethernet, you'll see both — make sure you're reading the right one.
Using Windows Settings (GUI Method)
- Open Settings → Network & Internet
- Click on your active connection (Wi-Fi or Ethernet)
- Scroll down to Properties or click View hardware and connection properties
- Look for Default gateway in the list of network details
How to Find Your Default Gateway on macOS 🖥️
Using System Settings / System Preferences
- Open System Settings (macOS Ventura and later) or System Preferences (older versions)
- Click Network
- Select your active connection from the left sidebar
- Click Details (Ventura+) or Advanced → TCP/IP tab
- The Router field shows your default gateway
Using Terminal
- Open Terminal (found in Applications → Utilities)
- Type:
netstat -nr | grep default - The IP address next to "default" in the output is your gateway
Alternatively: route -n get default gives a cleaner, more readable output.
How to Find Your Default Gateway on Linux
Open a terminal and use any of the following commands:
ip route show— Look for the line starting withdefault viafollowed by the gateway IProute -n— Shows the routing table; the gateway is in the Gateway column on the row where the Destination is0.0.0.0netstat -rn— Similar toroute -n; works on most distros
The ip route command is the most modern and widely supported across current Linux distributions.
How to Find Your Default Gateway on iPhone or iPad 📱
- Open Settings → Wi-Fi
- Tap the ⓘ icon next to your connected network
- Scroll down to the IPv4 Address section
- The Router field is your default gateway
Note: iOS only shows gateway information for Wi-Fi connections. If you're on cellular data, there's no user-accessible gateway in the traditional sense.
How to Find Your Default Gateway on Android
Android varies slightly by manufacturer and OS version, but the general path is:
- Open Settings → Network & Internet (or Connections on Samsung)
- Tap Wi-Fi and then tap your connected network
- Look for Advanced or tap the gear/pencil icon
- Find Gateway in the network details
Some Android skins hide this information or show it only when you switch the IP settings from DHCP to Static — though you don't actually need to save any changes to read it.
What If My Default Gateway Is Blank or 0.0.0.0?
A blank or 0.0.0.0 default gateway almost always means your device isn't properly connected to the network, or it failed to receive network configuration from a DHCP server. Common causes include:
- The router isn't broadcasting DHCP properly
- A static IP is misconfigured on your device
- A physical connection issue (loose cable, wrong port)
- A driver or adapter problem on the device itself
Variables That Affect What You'll See
Not every user finds the same gateway, and not every setup works the same way:
| Factor | How It Affects Your Gateway |
|---|---|
| Network type | Home networks typically use 192.168.x.x; enterprise networks vary widely |
| Router brand/model | Default gateway IPs differ by manufacturer default config |
| Static vs. DHCP | DHCP-assigned gateways can change; static ones are fixed |
| VPN active | A VPN may replace your default gateway with a tunnel endpoint |
| Multiple adapters | Each adapter can have its own gateway — active one matters |
| IPv4 vs. IPv6 | IPv6 networks use a different gateway format entirely |
When You Have Multiple Gateways
On devices with multiple network interfaces — such as a laptop with both Ethernet and Wi-Fi active, or a machine running VPN software — you may see more than one default gateway. The operating system uses routing metrics to prioritize which gateway handles traffic. The lower the metric number, the higher the priority.
This matters if you're diagnosing traffic routing issues or setting up split tunneling on a VPN, where some traffic goes through the tunnel and some goes directly to your local gateway.
The right gateway to care about depends entirely on which interface you're troubleshooting and what kind of traffic you're tracking — and that's where knowing your specific network architecture becomes the deciding factor.