Technologytech

How To Find Default Gateway IP Address

how-to-find-default-gateway-ip-address

Run a single command in your terminal or check one settings screen to find default gateway IP address on any device. The default gateway IP is your router's private address, usually something like 192.168.1.1 or 192.168.0.1, and it's the key to accessing your router's admin panel for Wi-Fi fixes, password changes, or manual network setup. If you need your computer's own local address instead, you can find Ethernet IP address through the same network settings. You can apply the same network-scanning approach to find a 3D printer IP address when it connects wirelessly.

How to find your default gateway IP address

Open Command Prompt on Windows and type ipconfig, or go to your Wi-Fi settings on a phone and tap the network details. On macOS and Linux, the gateway appears in network settings or via a terminal command. These methods get you the router IP in under 30 seconds, no extra tools needed.

What a default gateway is

A default gateway is the IP address of the local network device, typically your router, that sends traffic to other networks, including the internet. Every device on your home network sends outgoing data to this address first, and the router then forwards it to the wider web.

Windows: Ipconfig in command prompt

On Windows, the single verified method is to open Command Prompt, type ipconfig, and press Enter. You'll see a list of network adapters; look for the one marked "Default Gateway" under your active connection, it's the IP address right next to that label.

Mac: Network settings or terminal

On macOS, click the Apple icon in the top-left corner, select System Settings (or System Preferences on older versions), then click Network. Choose your active connection, Wi-Fi or Ethernet, and click "Details..." (or "Advanced"), then open the "TCP/IP" tab. The default gateway IP address is listed next to "Router." For a quicker route, open Terminal and run netstat -nr | grep default; the line starting with "default" shows your gateway IP right after the word "default."

Linux: The IP route command

On Linux, open a terminal and type ip route show (or the shortcut ip r) to display the routing table. Look for the line that begins with "default via", the IP address immediately after "via" is your default gateway. If that command isn't available, try route -n and find the line starting with "0.0.0.0" or "default"; the gateway IP is in the second column. This works across most distributions, including Ubuntu, Debian, Fedora, and Arch.

Android and iOS Wi-Fi details

On Android, open Settings, tap Wi-Fi (or Network & Internet), then tap the connected network's name. Look for "Advanced" or "Additional settings" and find the "Gateway" or "Router" field, that's your default gateway IP. On iOS, open Settings, tap Wi-Fi, then tap the circled "i" icon next to the connected network; scroll down to the "Router" field. Both mobile methods require you to be connected to the Wi-Fi network you're investigating, and the exact menu names may vary slightly by device model and OS version.

Log in and fix your network

From there, you can change the Wi-Fi password, adjust security settings, update firmware, or troubleshoot connectivity issues. If you're managing a wired network with multiple switches, you can use the same gateway-finding methods to find switch IP address on your local subnet and access their management interfaces.

Sources

The steps on this page were checked against the following documentation. Last verified 17 September 2026.

  1. Wikipedia — https://en.wikipedia.org/wiki/Default_gateway
  2. Infatica — https://infatica.io/blog/default-gateway/
  3. Ipcisco — https://ipcisco.com/lesson/what-is-a-default-gateway/
  4. Nordvpn — https://nordvpn.com
  5. Protonvpn — https://protonvpn.com/blog/default-gateway
  6. Noip — https://www.noip.com/support/knowledgebase/finding-your-default-gateway

About the author

Nestled in the heart of Dallas, Texas, Raye Loving is a visionary, threading the future of learning with the vibrant strings of technology. Her articles for Robots.

View all 87 articles by Raye Loving  ·  Our editorial policy

Leave a Reply

Your email address will not be published. Required fields are marked *