How to Find Your Gateway Address on Any Device
Your gateway address is one of those networking details that sits quietly in the background — until you need it. Whether you're troubleshooting a dropped connection, setting up a static IP, or configuring a VPN, knowing where to find it is a fundamental skill. The good news: every major operating system gives you a way to pull this information, and none of them require you to be a network engineer.
What Is a Gateway Address, Exactly?
Before diving into the steps, it helps to understand 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 outside internet. Think of it as the exit door of your home or office network. When your device wants to reach something beyond its own local network — a website, a cloud service, a remote server — it sends that traffic through the gateway first.
In most home setups, your gateway address is the IP address of your router. It's typically something like 192.168.1.1 or 192.168.0.1, but this varies depending on your router manufacturer, your ISP, and how your network was configured.
How to Find Your Gateway Address on Windows 🖥️
Windows gives you two reliable methods.
Using the Command Prompt
- Press Windows + R, type
cmd, and hit Enter - In the Command Prompt window, type:
ipconfig - Press Enter and look through the output for your active network adapter
- Find the line labeled Default Gateway
The address next to it is your gateway. If you see multiple adapters listed (Wi-Fi, Ethernet, VPN), make sure you're reading the one that's currently active.
Using the Settings App (Windows 10/11)
- Go to Settings → Network & Internet
- Click on your active connection (Wi-Fi or Ethernet)
- Scroll down to Properties or click Hardware properties
- Look for the IPv4 DNS server or Gateway field in the listed details
The command prompt method tends to be faster and more explicit, especially if you're dealing with multiple network interfaces.
How to Find Your Gateway Address on macOS
Using System Settings / System Preferences
- Open System Settings (macOS Ventura and later) or System Preferences
- Go to Network
- Select your active connection on the left (Wi-Fi or Ethernet)
- Click Details or Advanced, then go to the TCP/IP tab
- The Router field shows your gateway address
Using Terminal
If you prefer the command line:
netstat -nr | grep default The IP address in the output next to "default" is your gateway.
How to Find Your Gateway Address on Linux
Open a terminal and run either of these commands:
ip route | grep default or
route -n Look for the line starting with 0.0.0.0 (in the route -n output) or the word "default" — the address in the Gateway column is what you need.
The exact output format varies slightly depending on your Linux distribution and whether you're using older net-tools or the newer iproute2 toolset.
How to Find Your Gateway Address on iPhone or Android 📱
iPhone (iOS)
- Go to Settings → Wi-Fi
- Tap the ⓘ icon next to your connected network
- Scroll down to see your IP configuration details
- The Router field displays your gateway address
Note: iOS only shows this information for Wi-Fi. If you're on cellular, your gateway is managed by your carrier and isn't user-accessible.
Android
Steps vary slightly by manufacturer, but the general path is:
- Go to Settings → Wi-Fi (or Connections → Wi-Fi)
- Tap and hold your connected network, or tap the gear/info icon
- Look for Advanced or Network details
- The Gateway field will be listed under IP settings
Some Android devices only show gateway details when IP settings are set to Static rather than DHCP. You may need to switch to static mode temporarily to view it — just make sure to switch back to avoid network disruption.
Checking Your Gateway Through the Router Itself
If you're having trouble finding the gateway address through your device's OS, you can often find it by logging into your router's admin panel directly.
Most routers are accessible by typing 192.168.1.1 or 192.168.0.1 into a browser address bar. From there, the router's status or overview page usually shows:
- The WAN/internet IP address (assigned by your ISP)
- The LAN gateway IP (the address your devices use as their gateway)
- Connected devices and their assigned IPs
Default login credentials vary by router brand — they're often printed on a label on the device itself.
Variables That Affect What You'll Find
The gateway address you see depends on more than just which device you're using.
| Factor | How It Affects Your Gateway |
|---|---|
| Router model/brand | Different manufacturers use different default IP ranges |
| ISP configuration | Some ISPs assign non-standard gateway addresses |
| Network type | Home, enterprise, and public networks are structured differently |
| VPN active | A VPN may create a virtual gateway that overrides your real one |
| Multiple adapters | Each interface (Wi-Fi, Ethernet, VPN) can have its own gateway |
| IPv4 vs IPv6 | IPv6 uses a different gateway format entirely |
If you're on a corporate or managed network, IT policy may restrict visibility into certain network details, or your gateway may be a network appliance rather than a standard router.
When One Gateway Address Isn't the Whole Picture
In more complex setups — multi-router networks, mesh Wi-Fi systems, enterprise environments, or networks with dedicated firewalls — there may be multiple hops between your device and the internet. The gateway address your device reports is just the first hop: the nearest device responsible for routing your traffic onward.
Whether that address is what you actually need depends entirely on what you're trying to do with it. Diagnosing a local connection issue is a different task than configuring port forwarding, setting up a static route, or troubleshooting a split-tunnel VPN — and each of those scenarios points to a different part of your network infrastructure.