Finding Your Default Gateway Address | What Is My Default Gateway?
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 or ip route on macOS and 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.