Changing static IP address programatically
-
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
-
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
-
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
vivekphlp wrote:
I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Can you try this -> http://nibuthomas.wordpress.com/2007/10/13/changing-ip-address-of-a-machine/[^]
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
Did you search on the codeproject?
-
I need to change the static IP address of a machine programatically.I tried to change the IP at Registry location , HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces. But this change is taking effect only after restart of the computer. Is there any method to change IP without restart of the computer ? I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Proud To Be an Indian
-
vivekphlp wrote:
I tried AddIpAddress() function it shows some problem in version compatibility. I am using Visual C++ 6.0.
Can you try this -> http://nibuthomas.wordpress.com/2007/10/13/changing-ip-address-of-a-machine/[^]
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.
Proud To Be an Indian
-
When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.
Proud To Be an Indian
vivekphlp wrote:
When I try to include "iphlpapi.h" it shows some error inside visual C++, not in my program.It says some stucture inside iphlpapi.h is undefined.
Do you have latest platform SDK installed!
Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
modified on Tuesday, April 15, 2008 5:09 PM