How to Find Your Default Gateway Address
Learn what a default gateway is, why it matters, and how to find the default gateway IP address on common systems.
Default Gateway Basics
A default gateway is the router or firewall that your device uses to reach networks beyond the local subnet, including the internet. When your computer needs to send traffic to an address outside its local range, it forwards the packets to the default gateway.
Knowing the gateway address is useful for accessing the router’s admin interface, diagnosing connectivity issues, and understanding your network topology.
Finding the Default Gateway on Windows and macOS
On Windows, run ipconfig and look for the “Default Gateway” field under your active adapter. On macOS, open System Settings or System Preferences, view your network connection, and select the “Router” or “Gateway” value.
Advanced users can also use netstat -nr on macOS, or ip route on Linux to view routing tables and identify which IP serves as the default route.
Look for the “Default Gateway” line.
ipconfig
These commands reveal the default gateway on macOS.
netstat -nr | grep default
route -n get default
Using the Gateway Address for Troubleshooting
If you can reach your default gateway (for example, by pinging it) but not external sites, the issue may lie with your internet provider or upstream routing. If you cannot reach the gateway at all, focus on local cabling, Wi‑Fi configuration, or router health.
Accessing the router’s web interface at the gateway address often allows you to check connection status, logs, and configuration settings that can help you pinpoint the source of problems.
Related Articles
Can You Find a Facebook User by IP Address?
Understand what is and is not possible when trying to identify Facebook users by IP address, plus the privacy and legal issues involved.
Find IP Address in Windows 7, 10, or 11
Learn how to quickly find your IPv4 and IPv6 addresses on Windows 7, Windows 10, and Windows 11 using both GUI and command-line tools.
How to Find IP Address on Mac
Discover multiple ways to find your Mac’s IP address, including System Settings, Terminal commands, and router tools.