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 or Linux 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 WIN+X. Skip to Step 5 below if you go 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. Once Control Panel is open, tap or click on the Network and Internet link. 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 on 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 on 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. On the left margin of the Network and Sharing Center window...
    1. Windows 10, 8, 7: Tap or click on Change adapter settings.
    2. Windows Vista: Click on Manage network connections.
    3. Note: I realize it says change or manage in that link but 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. On the Network Connections screen, 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 on the network connection. This should bring up an Ethernet Status or Wi-Fi Status dialog box, or some other Status, depending on the name of the network connection.
    1. 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. Now that the connection's Status window is open, tap or click on the Details... button.
    1. Tip: In Windows XP only, you'll need to click the Support tab before you'll see the Details... button.
  3. In the Network Connection Details window, locate either the IPv4 Default Gateway or IPv6 Default Gateway under the Property column, depending on which network type you're using.
  4. The IP address listed as the Value for that property 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.
  1. 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.
    1. 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:

  1. Open Command Prompt.
  2. Execute the following command exactly:
    ipconfig space between 'ip' and 'config' and no switches or other options.
  3. 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.
    1. 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.

On my Windows 10 computer, which has a number of network connections, the portion of the ipconfig results that I'm interested in is the one for my wired connection, which looks like this:

Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::8126:df09:682a:68da%12
IPv4 Address. . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

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

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, you can find your default gateway using the following netstat command:

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.

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.