Find your router's default gateway IP address



It’s necessary to know your router’s LAN IP address. When you first bought your router, you visited this IP address to configure your router.

It should look something like depending on th type of router. You can find your internal IP address using the following steps:


Open Command Prompt and type the following command:
ipconfig | findstr /i "Gateway"

You should see something like this:
C:\Documents and Settings\administrator>ipconfig | findstr /i "Gateway"
Default Gateway . . . . . . . . . :


Open a Terminal and type the following command:
ip route | grep default

Your output will be something like this:
joe$ ip route | grep default
default via dev eth0 proto static

Mac OS X:

Open the and type the following command:
netstat -nr | grep default

You will see something like this:
joe$ netstat -nr | grep default
default UGSc 50 46 en1

All the above examples show that the default gateway IP address is


But this shows only the IPv6 address for me. How do I get the router’s IPv4 instead?


You could ignore the parameters and simply use ipconfig. Or if you prefer a different approach, you can right click on your connection from your Network and Sharing Center and click on Details… to view the same details you’d see with ipconfig. Something like this!