DOS Command to Get Router IP

Posted on 2012-08-22
Last Modified: 2013-11-09
I ran arp -a
and received this:
Interface: --- 0x20Interface: --- 0x20

When I entered that into the
Question by:coreybryant
    LVL 14

    Expert Comment

    What's your question?
    The screenshot shows that you've connected to an IIS server, running on a Windows box.  It could even be your own PC.
    If you want to know what your router's IP is, it is most likely your default gateway if you type in 'ipconfig'.
    LVL 3

    Expert Comment

    If your router is also your default gateway you could use "ipconfig" or, if the OS is recent, "netsh".

    For example:

    netsh inter ip show route | find /I ""
    LVL 29

    Author Comment

    Sorry, you were too fast, I was trying to edit the question - and delete it since it was put into the wrong category.

    When I entered that into that IP (, this is what came up: resultsThere were some other IPs, like the TiVos and but

    I did an ipconfig /all but I was not certain if Default Gateway was the router IP ( but that came up blank.  I thought I would at least get a sign-in.

    LVL 14

    Expert Comment

    So this is a home network?  Has anyone setup any fancy network configurations for you, or do you just have a DSL/cable modem with wifi that all your devices connect to?  In that case, it's almost certain that the default gateway is your router.  What type of router is it?
    LVL 20

    Assisted Solution

    come back a step - what are you actually trying to achieve? access your router to make changes?
    run ipconfig /all and put the details in here together with a brief description of what you have and what you are trying to do
    LVL 38

    Accepted Solution

    The first 1-2 hops should be the first router, but that isn't always the case, 99% of the time it is however. Just putting the ip of the router into a web browser doesn't mean you'll be prompted for a login, some only allow access through a console port, others only from specific ports like telnet or ssh for example. It sounds like you may not know what to do even when you do get a login prompt, and or you are certainly not authorized to do so.

    LVL 29

    Author Comment

    It comes back as - which I thought.  

    I had just seen the login prompt before - I wasn't trying to hack it, I was working on something else and making sure that this was the actual router before I messed up.

    Basically, I was trying to help someone else with another question and I was building the program thru a tool online.  

    So I was wanting to make sure that I was understanding the results I was getting

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
    The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now