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 . :
Description . . . . . . . . . . . : Acme XL 10/100Mb Ethernet NIC
Physical Address. . . . . . . . . : 00-CC-44-79-C3-AA
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . :
Subnet Mask . . . . . . . . . . . :
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . :
DNS Servers . . . . . . . . . . . :

The router address that you're looking for is specified in Default Gateway line ("" 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 to 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.