How to change the machine IP address from program?

How to change the machine IP address from program?

Post by Jens Yllma » Tue, 13 Jul 1999 04:00:00



 Hello,

 I want to change the IP address of the machin/network card from a
program. I've looked at the regestry but can't find it. Does anybody
know if it is possible? And if so, how? I want it to change without
restarting the machine.

 Jens Yllman
------------------------------------------------------------
Uniweb AB                            Phone:  +46 8 626 42 00
P O Box 745                          FAX:    +46 8 626 42 01
S-191 27  SOLLENTUNA
SWEDEN                               http://www.uniweb.se/

 
 
 

How to change the machine IP address from program?

Post by Jens Yllma » Tue, 13 Jul 1999 04:00:00


 I looked at this some more and found in the registry where the
information is. It's in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XXX\Parameters\Tcpip
where XXX is the name of the networkcard. I've not tried to change the
parameters yet. Anybody here that knows if the is any API for changing
the IP address. Or does anybody know if the system know at once when I
change in the regestry. Or is there some API that tells the system that
I've updated the regestry.

 Jens Yllman


>  Hello,

>  I want to change the IP address of the machin/network card from a
> program. I've looked at the regestry but can't find it. Does anybody
> know if it is possible? And if so, how? I want it to change without
> restarting the machine.

>  Jens Yllman
> ------------------------------------------------------------
> Uniweb AB                            Phone:  +46 8 626 42 00
> P O Box 745                          FAX:    +46 8 626 42 01
> S-191 27  SOLLENTUNA
> SWEDEN                               http://www.uniweb.se/

--
------------------------------------------------------------
Uniweb AB                            Phone:  +46 8 626 42 00
P O Box 745                          FAX:    +46 8 626 42 01
S-191 27  SOLLENTUNA
SWEDEN                               http://www.uniweb.se/

 
 
 

1. changing machine ip address within mfc program.

hello;

i would like to be able to change from within a mfc c++
program (at runtime) the local IP address of the machine
on which it runs. pls help.  im using visual c++ ver 6.0.

eg.  at startup tcp/ip address is 192.169.88.10.
     when running program,  the ip address should be
changed to 192.169.88.25.

any help or a pointer to some online material is much
appreciated.

thank you.

2. Hp Omnibook 2100 password help

3. Changing Machine Name and IP address Programmatically

4. keybd_event

5. Change IP Address NT 4, without IP Helper

6. nVidia Gforce DDR ram vs. nVidia RIVA AGP SDram?

7. Change IP address and host name from program?

8. WBEM_E_QUOTA_VIOLATION

9. How can i change IP address through program?

10. How change IP address for my computer in program on NT 4.0

11. LOCAL IP ADDRESS (MY IP ADDRESS)

12. Getting Client requested IP address in case of multiple Ip addresses

13. How can i get IP address of my local machine.