How to obtain the Default Gateway IP Address ??


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: How to obtain the Default Gateway IP Address ??

  1. #1
    Vicky Guest

    How to obtain the Default Gateway IP Address ??


    Hi,
    Can u help me how to obtain the default gateway address of the given IP Address
    in Visual Basic.

    Your help would be great need for me.

    Thanks,
    Vicky

  2. #2
    Sachin Guest

    Re: How to obtain the Default Gateway IP Address ??

    quick & dirty solution is to run IPCONFIG from your program, setting the
    output redirection to some temp file...then open the file & read the Default
    Gateway Address.Remember output redirection won't work by using the Shell
    command :-)
    TIA
    Sachin
    "Vicky" <vicky131in@yahoo.com> wrote in message
    news:3b4be1e5$1@news.devx.com...
    >
    > Hi,
    > Can u help me how to obtain the default gateway address of the given IP

    Address
    > in Visual Basic.
    >
    > Your help would be great need for me.
    >
    > Thanks,
    > Vicky




  3. #3
    Sachin Guest

    Re: How to obtain the Default Gateway IP Address ??

    quick & dirty solution is to run IPCONFIG from your program, setting the
    output redirection to some temp file...then open the file & read the Default
    Gateway Address.Remember output redirection won't work by using the Shell
    command :-)
    TIA
    Sachin
    "Vicky" <vicky131in@yahoo.com> wrote in message
    news:3b4be1e5$1@news.devx.com...
    >
    > Hi,
    > Can u help me how to obtain the default gateway address of the given IP

    Address
    > in Visual Basic.
    >
    > Your help would be great need for me.
    >
    > Thanks,
    > Vicky




  4. #4
    Dean Earley Guest

    Re: How to obtain the Default Gateway IP Address ??

    I dont know how generic this is, but i found the info at:
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\{30C78054-16EA-4E95-B457-3AA1FC4FECAF}\Parameters\Tcpip
    under DefaultGateway and DhcpDefaultGateway
    to know which one, you could look at EnableDhcp

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Vicky" <vicky131in@yahoo.com> wrote in message news:3b4be1e5$1@news.devx.com...
    >
    > Hi,
    > Can u help me how to obtain the default gateway address of the given IP Address
    > in Visual Basic.
    >
    > Your help would be great need for me.
    >
    > Thanks,
    > Vicky




  5. #5
    Dean Earley Guest

    Re: How to obtain the Default Gateway IP Address ??

    I dont know how generic this is, but i found the info at:
    HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\{30C78054-16EA-4E95-B457-3AA1FC4FECAF}\Parameters\Tcpip
    under DefaultGateway and DhcpDefaultGateway
    to know which one, you could look at EnableDhcp

    --
    Dean Earley (dean.earley@icode.co.uk)
    Assistant Developer

    iCode Systems
    "Vicky" <vicky131in@yahoo.com> wrote in message news:3b4be1e5$1@news.devx.com...
    >
    > Hi,
    > Can u help me how to obtain the default gateway address of the given IP Address
    > in Visual Basic.
    >
    > Your help would be great need for me.
    >
    > Thanks,
    > Vicky




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center