What Is My Router’s IP Address (Default Gateway)

A router is a device that communicates between the Internet (or public network) and the devices in a local network (or private network).

A typical home router, that usually acts as a default gateway for the local devices, can be configured using a web-based configuration page that can be accessed from a web-browser if you know the router’s IP address.

In this note i will show how to find out the router’s IP address in Windows, Linux and MacOS from the command line.

Cool Tip: Check if TCP port is opened in PowerShell! Read more →

What Is My Router’s IP Address

To display the IP address of the default gateway in Windows i.e. the router’s IP address, execute the route command with the print option from the command prompt:

C:\> route print
Network Destination            Netmask          Gateway        Interface    Metric
          On-link       331
          On-link       331          On-link       306          On-link       306 

To find out the router’s IP address in Linux or MacOS, execute:

$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface         UG    600    0        0 wlp2s0     U     1000   0        0 wlp2s0   U     600    0        0 wlp2s0
Was it useful? Share this post with the world!

Leave a Reply