PDA

Click to See Complete Forum and Search --> : Getting the Default GW IP using Vb.net 2005


rabih80
Nov 1st, 2007, 04:08 PM
Hello Guys,

Can some one help me in the following :
I wanna get the Default GW IP of the local machine inorder to make change to other values (DNS IP's).
Thanks in advance.

Hack
Nov 2nd, 2007, 06:01 AM
What is the "GW IP"?

Paul M
Nov 2nd, 2007, 06:29 AM
What is the "GW IP"?

The "George Washington IP" silly ;)

No but seriously he means GateWay IP, anway what changes do you wanna make? I don't think any are possible, you don't mean changing the IP do you?

rabih80
Nov 3rd, 2007, 02:01 AM
Hello Guys,

Yes i mean changing the Gateway IP.. ;)
Any way i found some ways to checge the GW IP but the easiest way is to do that using Batch File and using a command NETSH (its dos command) and it works.
However you may face some problem with that (the privelige for the user should be administrator or power user inorder to be able to change the IP).
There is a solution for this which is u should run the appliacteion as a process so u can run it as Administrator and it will work.
Am just trying to know how can i do that..!?

Regards,

Hack
Nov 5th, 2007, 07:58 AM
How you can do what? Run the application as a process?