Get router IP address from command prompt

If you're using Windows OS and need to get your router IP address the easiest way to do it is via command prompt. In Windows the command prompt lets you send instructions to the operating system without going through myriads of windows. You can run a program from command prompt much faster since you don't need to find an icon for it.

First we need to launch command prompt.

1) In Windows 7 and below click on the start menu and then click Run. Run window will pop up.

In Windows 8 you can either right click on Start button and select Run or press "Windows"+X button.

2) Type cmd.exe in Run Window and press Enter. Command prompt window will appear. From this window you can type different commands to Windows OS.

3) To get router IP address you need to type "ipconfig /all" command. Make sure to press enter after typing it in. You will get lots of useful information as a result.

Here is a snippet of what you may get from ipconfig /all command. Output from this command usually contains multiple sections corresponding to network connections you have on your computer.

Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : dns.microsoft.com
Description . . . . . . . . . . . : Acme XL 10/100Mb Ethernet NIC
Physical Address. . . . . . . . . : 00-CC-44-79-C3-AA
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 172.16.1.5
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.240.1
DHCP Server . . . . . . . . . . . : 172.16.243.2
DNS Servers . . . . . . . . . . . : 172.16.50.82

The router address that you're looking for is specified in Default Gateway line ("172.16.240.1" in our case). Once you know this IP address you can just type it in your browser and access router administration interface.

Also there are several other IP addresses which may be interested to you. DNS Servers line specifies a server which is used to translate web site names to internet IP addresses. So if you have any issues when website names are not resolving to to IP addresses you may look what DNS server is used and try to correct it if needed (see our article about changing DNS addresses on this website).

Another line that you may be interested in is IP address. This line contains your current address within your home network. If you are unable to connect to internet and your IP address is in range from 169.254.0.0 to 169.254.0.16 it means that your server was unable to automatically get IP address from DHCP server and you need to ask someone from technical support to help you with fixing it.

DHCP server line contains IP address of a server which is responsible for giving IP addresses to computers in the network. If you every receive BAD IP ADDRESS errors in browser it may mean that DHCP server is configured incorrectly and you need to contact support with this issue.