How to Find Your Default Gateway IP Address

Find your default gateway IP address in Windows 10, 8, 7, Vista, and XP

Default Gateway on Windows 10 Desktop

Knowing the IP address of the default gateway (usually a router) on a home or business network is important information to successfully troubleshoot a network problem or gain access to the router's web-based management. In most cases, the default gateway IP address is the private IP address assigned to the router. This is the IP address that the router uses to communicate with a local home network.

Instructions in this article apply to all versions of Windows, including Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. There are also directions for macOS, Linux, Android, and iOS.

How to Find Your Default Gateway IP Address in Windows

The default gateway IP address is stored in the Windows network settings and it shouldn't take more than a few minutes to locate your default gateway IP address in Windows.

These instructions find the default gateway IP address on wired and wireless home and small business networks. Larger networks, with more than a single router and simple network hubs, may have more than one gateway and more complicated routing.

  1. Open Control Panel, accessible from the Start menu in most versions of Windows.

    To shorten this process on Windows 10 or Windows 8.1, press WIN+X to open the Power User menu, and select Network Connections. Then, skip to Step 4 (Windows 10) or Step 5 (Windows 8).

  2. Select Network and Internet. In Windows XP, click Network and Internet Connections.

    Network and Internet in Control Panel

    If the Control Panel view is set to Large icons, Small icons, or Classic View, select Network and Sharing Center, then go to Step 4. In Windows XP, click Network Connections and skip to Step 5.

  3. In the Network and Internet window, select Network and Sharing Center. In Windows XP, click Network Connections and skip to Step 5.

    Network and Sharing Center
  4. In the Network and Sharing Center window, select Change adapter options. In Windows 8 and 7, click Change adapter settings. In Windows Vista, click Manage network connections.

    Change adapter settings link in Network and Sharing Center
  5. Locate the network connection for the default gateway IP. On most Windows computers, a wired network connection is labeled as Ethernet or Local Area Connection, a wireless network connection is labeled as Wi-Fi or Wireless Network Connection.

    Windows can connect to multiple networks at the same time, so there may be several connections. If the network connection is working, exclude any connection that is not connected or disabled. To determine which connection to use, go to Details view and note the information in the Connectivity column.

  6. Double-click the network connection to open an Ethernet Status, Local Area Connection Status, Wi-Fi Status, or another status dialog box, depending on the name of the network connection.

    If Properties, Devices and Printers, another window, or a notification appears, the network connection does not have a status, meaning it's not connected to a network or the internet. Go to Step 5 and look for a different connection.

  7. Select Details. In Windows XP, go to the Support tab, then click Details.

    Details button in Ethernet0 Status window
  8. In the Property column, locate IPv4 Default Gateway, IPv6 Default Gateway, or Default Gateway, depending on the network type.

    IPv4 Default Gateway section in Ethernet0 Status
  9. The default gateway IP address being used by Windows appears in the Value column.

    If no IP address is listed, the connection you chose in Step 5 may not be the one Windows is using to connect to the internet. Go back to Step 5 and choose another connection.

  10. Make a note of the default gateway IP address.

  11. Use the default gateway IP address to troubleshoot a connection problem, to access the router, or perform other tasks.

How to Find Your Default Gateway IP Address Via IPCONFIG

The ipconfig command is a quick way to find the default gateway IP address. Use this method if you're experienced working with commands in Windows.

  1. Enter ipconfig and press Enter.

  2. Go to the Default Gateway entry to find the IP address.

    ipconfig command in Command Prompt, with Default Gateway result

Here's an example result of the ipconfig command. The default gateway for the Ethernet connection is listed as 192.168.202.2.

...
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::29a0:8d37:e56d:40a7%3
IPv4 Address. . . . . . . . . . . : 192.168.202.146
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.202.2
...

If this is too much information, enter ipconfig | findstr "Default Gateway" and press Enter. This trims down the data that's returned in the Command Prompt window. However, this method is only helpful if you have one active connection since multiple connections would show the default gateways with no more context on what connection they apply to.

ipdonfic | findstr

How to Find Your Default Gateway on a Mac or Linux PC

On a macOS computer, there are two ways to find the default gateway: through a graphical program and using the command line.

The easiest way to locate the default gateway of a Mac is through System Preferences. Click Network, choose the network connection you're using, then click Advanced. Click the TCP/IP tab and locate the IP address next to Router.

Router address in macOS Network System Preferences

Another way to find your Mac's default gateway is to use the netstat command. Open a terminal, enter netstat -nr | grep default, then press the Enter key.

netstat command in Terminal in macOS with default result

To display the default gateway IP on most Linux-based computers, open a terminal, enter ip route | grep default, then press Enter.

How to Locate the Default Gateway on iPhone or Android

The easiest way to locate the default gateway on an iOS or Android phone or tablet, is to use the What's My Router IP? website. It probes the network for the default gateway from a web browser, so it works on desktop computers, too. Go to the website and look for your router's local (private) IP.

Screenshot of the What's My Router IP website

This isn't the best way to find the default gateway but it works quickly and usually returns the correct IP address. However, if the IP address it shows is incorrect, check the router's IP address from the networking settings on your iPhone, iPad, iPod touch, or Android phone or tablet.

On an iOS device, go to Settings > Wi-Fi and tap the small (i) next to the network you're connected to. Go to the Router section to find the default gateway.

Wi-Fi, Info, and Router information screens in iOS Settings

The directions for finding the default gateway on Android depends on the version. See TuneComp for specific details, or try these general steps: swipe down from the top of the screen and press-and-hold the Wi-Fi icon, tap the settings icon next to the network, go to Advanced, then read the address next to Gateway.

More Information About Your Computer's Default Gateway

Unless you change the router's IP address, or your computer connects directly to a modem to access the internet, the default gateway IP address used by your computer and other devices will never change.

If can't locate the default gateway, use the default IP address assigned by your router maker, which probably hasn't changed. Check out our updated Linksys, D-Link, Cisco, and NETGEAR default password lists for those IP addresses.