
Setting the Gateway IP (in TCP/IP Settings) via program
Dear All,
I am trying to change the Gateway IP address of
my system via progrem. I could identify that the
gateway ip settings were stored in the registry at:
(in NT)
HKLM\CurrentControlSet\"AdapterName"\Tcpip\DefaultGateway
I am able to change the binary values in the registry
and set it to the required IP value via the program using.
(This does even get displayed in the properties dialog of
the Tcp/Ip)
But it doesn't become effective. When I try an IPCONFIG
it still displays the old IP as the gateway IP. Can I
have any utitilies available with NT/2000 to do this.
Please help ASAP.
Thanks.
Regards,
Abhilash