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

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 macOS, Linux, Android, and iOS can be found at the bottom of the page.

How to Find Your Default Gateway IP Address in Windows

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.

    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.

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

    Network and Internet in Control Panel

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

    Windows 10, 8, 7, Vista: Tap or click Network and Sharing Center, most likely the link at the very top.

    Windows XP Only: Click the Network Connections link at the bottom of the window and then skip to Step 5 below.

    Network and Sharing Center
  4. Open the Network Connections screen.

    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.

    Windows 8 and 7: Tap or click Change adapter settings from the left panel.

    Windows Vista: Click Manage network connections from the left panel.

    Change adapter settings link in Network and Sharing Center

    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.

  5. Locate the network connection that you want to view the default gateway IP for.

    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.

    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.

  6. Double-tap or double-click the network connection.

    Details button in Ethernet0 Status window

    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.

    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.

  7. Click Details.

    In Windows XP only, you'll need to click the Support tab before you'll see the Details... button.

  8. Locate IPv4 Default Gateway, IPv6 Default Gateway, or Default Gateway under the Property column, depending on which network type you're using.

    IPv4 Default Gateway section in Ethernet0 Status
  9. Locate the IP address listed as the Value for that property. This is the default gateway IP address Windows is using at the moment.

    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.

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

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

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. Execute the following command exactly:

    ipconfig space between 'ip' and 'config' and no switches or other options.

  2. Locate the value next to Default Gateway.

    ipconfig command in Command Prompt, with Default Gateway result

    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.

    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.

  3. You should now know your default gateway.

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. . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :

As you can see, the Default Gateway for the 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.

ipdonfic | findstr

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.

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 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 following netstat command via terminal:

netstat -nr | grep default
netstat command in Terminal in macOS with default result

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

ip route | grep default

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.

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

The directions for finding the default gateway on Android depends heavily on the version you're using. 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, and then read the address next to Gateway.

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 your computer and other devices will never change.

If you're still having trouble locating the default gateway, 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.