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:

  1. Press Windows + R, type cmd, and hit Enter
  2. In the Command Prompt window, type: ipconfig
  3. Press Enter
  4. Look for the section labeled with your active connection (e.g., Ethernet adapter or Wi-Fi)
  5. 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)

  1. Open SettingsNetwork & Internet
  2. Click on your active connection (Wi-Fi or Ethernet)
  3. Scroll down to Properties or click View hardware and connection properties
  4. Look for Default gateway in the list of network details

How to Find Your Default Gateway on macOS 🖥️

Using System Settings / System Preferences

  1. Open System Settings (macOS Ventura and later) or System Preferences (older versions)
  2. Click Network
  3. Select your active connection from the left sidebar
  4. Click Details (Ventura+) or AdvancedTCP/IP tab
  5. The Router field shows your default gateway

Using Terminal

  1. Open Terminal (found in Applications → Utilities)
  2. Type: netstat -nr | grep default
  3. 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 with default via followed by the gateway IP
  • route -n — Shows the routing table; the gateway is in the Gateway column on the row where the Destination is 0.0.0.0
  • netstat -rn — Similar to route -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 📱

  1. Open SettingsWi-Fi
  2. Tap the icon next to your connected network
  3. Scroll down to the IPv4 Address section
  4. 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:

  1. Open SettingsNetwork & Internet (or Connections on Samsung)
  2. Tap Wi-Fi and then tap your connected network
  3. Look for Advanced or tap the gear/pencil icon
  4. 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:

FactorHow It Affects Your Gateway
Network typeHome networks typically use 192.168.x.x; enterprise networks vary widely
Router brand/modelDefault gateway IPs differ by manufacturer default config
Static vs. DHCPDHCP-assigned gateways can change; static ones are fixed
VPN activeA VPN may replace your default gateway with a tunnel endpoint
Multiple adaptersEach adapter can have its own gateway — active one matters
IPv4 vs. IPv6IPv6 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.