How to Find Your Default Gateway IP Address

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

Screenshot of the Default Gateway data via the Network Connection Details in Windows 10
Default Gateway via Network Connection Details (Windows 10).

Knowing the IP address of the default gateway (usually your router) on your home or business network is important information if you want to successfully troubleshoot a network problem or gain access to your router's web-based management.

In most cases, the default gateway IP address is the private IP address assigned to your router. This is the IP address that your router uses to communicate with your local home network.

While it might take a number of taps or clicks to get there, the default gateway IP address is stored in Windows' network settings and is really easy to spot.

Time Required: It shouldn't take more than a few minutes to locate your default gateway IP address in Windows, even less time with the ipconfig method outlined further down this page, a process you might prefer if you're experienced working with commands in Windows.

Note: You can find your computer's default gateway as described below in any version of Windows, including Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. Directions for the macOS, Linux, Android, and iOS operating systems can be found at the bottom of the page.

How to Find Your Default Gateway IP Address in Windows

Note: The instructions below will only work to find the default gateway IP address on "basic" 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 via the Start menu in most versions of Windows.
    1. Tip: If you're using Windows 10 or Windows 8.1, you can shorten this process by using the Network Connections link on the Power User Menu, accessible via the WIN+X keyboard shortcut. Skip down to Step 4 (Windows 10) or Step 5 (Windows 8) if you end up going that route.
    2. See What Version of Windows Do I Have? if you're not sure which version of Windows is installed on your computer.
  2. Tap or click Network and Internet. This link is called Network and Internet Connections in Windows XP.
    1. Note: You won't see this link if your Control Panel view is set to Large icons, Small icons, or Classic View. Instead, tap or click Network and Sharing Center and move on to Step 4. In Windows XP, click Network Connections and skip to Step 5.
  3. In the Network and Internet window...
    1. Windows 10, 8, 7, Vista: Tap or click Network and Sharing Center, most likely the link at the very top.
    2. Windows XP Only: Click the Network Connections link at the bottom of the window and then skip to Step 5 below.
  1. Open the Network Connections screen.
    1. Windows 10: Tap or click Change adapter options near the middle of the window. If you got to this step through Control Panel, click Change adapter settings from the left panel.
    2. Windows 8 and 7: Tap or click Change adapter settings from the left panel.
    3. Windows Vista: Click Manage network connections from the left panel.
    4. Note: Although it does say change or manage in that link, don't worry, you won't be making changes to any network settings in Windows in this tutorial. All you'll be doing is viewing the already configured default gateway IP.
  2. Locate the network connection that you want to view the default gateway IP for.
    1. Tip: On most Windows computers, your wired network connection is probably labeled as Ethernet or Local Area Connection, while your wireless network connection is probably labeled as Wi-Fi or Wireless Network Connection.
    2. Note: Windows can connect to multiple networks at the same time, so you may see several connections on this screen. Usually, especially if your network connection is working, you can immediately exclude any connection that says Not connected or Disabled. If you're still having trouble determining which connection to use, change the view to Details and note the information in the Connectivity column.
  1. Double-tap or double-click the network connection.
    1. This will open an Ethernet Status, Local Area Connection Status, or Wi-Fi Status dialog box, or some other Status, depending on the name of the network connection.
    2. Note: If you instead get a Properties, Devices and Printers, or some other window or notification, it means that the network connection you chose does not have a status to show you, meaning it's not connected to a network or the internet. Revisit Step 5 and look again for a different connection.
  2. Click Details.
    1. Tip: In Windows XP only, you'll need to click the Support tab before you'll see the Details... button.
  3. Locate IPv4 Default Gateway, IPv6 Default Gateway, or Default Gateway under the Property column, depending on which network type you're using.
  4. Locate the IP address listed as the Value for that property. This is the default gateway IP address Windows is using at the moment.
    1. Note: If no IP address is listed under either Property, the connection you chose in Step 5 may not be the one Windows is using to connect you to the internet. Check again that this is the right connection.

    You can now use the default gateway IP address to troubleshoot a connection problem you might be having, to access your router, or whatever other task you had in mind.

    Tip: Documenting your default gateway IP is a good idea, if only to avoid having to repeat these steps next time you need it.

    How to Find Your Default Gateway IP Address Via IPCONFIG

    The ipconfig command, among many other things, is great for quick access to your default gateway IP address:

    Screenshot of ipconfig results in Windows 10
    Default Gateway Results From IPCONFIG (Windows 10).
    1. Open Command Prompt.
    2. Execute the following command exactly:
      ipconfig 
      ...no space between 'ip' and 'config' and no switches or other options.
    3. Locate the value next to Default Gateway.
      1. Depending on your version of Windows, how many network adapters and connections you have, and how your computer is configured, you may get something very simple in response, or something very complex.
      2. What you're after is the IP address that's listed as the Default Gateway under the heading for the connection you're interested in. See Step 5 in the process above if you're not sure which connection is important.

    Here's an example result of the ipconfig command:

    ...
    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
    ...

    As you can see, the Default Gateway for the Ethernet connection is listed as 192.168.202.2. This is what you're after as well, for whatever connection you're interested in.

    Screenshot of the findstr command in Windows 10 Command Prompt
    Default Gateway Results From 'findstr' Command.

    If that's too much information to look at, you could try executing ipconfig | findstr "Default Gateway" instead, which significantly trims down the data that's returned in the Command Prompt window. However, this method is only helpful if you know that you only have one active connection since multiple connections would show their default gateways with no more context on what connection they apply to.

    Finding 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 via the command line.

    Screenshot showing how to find the router's IP address on a Mac via System Preferences
    Locating the Default Gateway Through System Preferences (macOS).

    The easiest way to locate the default gateway of a Mac is through System Preferences. Click Internet and locate the IP address next to Router.

    Another way to find your Mac's default gateway is to use the following netstat command:

    Screenshot showing how to find the default gateway in macOS
    Executing the Netstat Command to Find the Default Gateway in macOS.
    netstat -nr | grep default

    Execute that command from the Terminal application.

    On most Linux-based computers, you can show your default gateway IP by executing the following:

    ip route | grep default

    Like on a Mac, execute the above via Terminal.

    Locating the Default Gateway on iPhone or Android

    The easiest way to locate the default gateway on a phone or tablet, regardless if it's iOS or Android, is to use the What's My Router IP? website. It attempts to probe the network for the default gateway from the web browser, so it works on desktop computers, too.

    Screenshot of the What's My Router IP website
    Locating a Router's IP Address From a Web Browser.

    Open the link above and look under the section called "Your router's local (private) IP is" for the Router Private IP.

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

    If you're on an iOS device, go to Settings > Wi-Fi and tap the small (i) next to the network you're connected to. Find the default gateway next to the Router entry.

    Screenshots showing how to find the default gateway on an iPhone
    Locating a Router's IP Address on an iPhone.

    The directions for finding the default gateway on Android depends heavily on the version you're using. See TuneComp for specific details.

    More Information About Your Computer's Default Gateway

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

    If you're still having trouble locating the default gateway for your computer or device, especially if your ultimate goal is access to your router, you might have luck trying 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.