Click to See Complete Forum and Search --> : Changing the Local Machine IP address


Jason Bennison
November 10th, 2001, 10:47 AM
I need to be able to dynamically change the LOCAL MACHINE IP address.

I can change the name of the local machine in the Windows 2000 Control panel, but i need to be able to change the IP address itself.

If this requires a hardware alteration, then i need to know what component changes are needed, but if there is anyone who can provide this in C++ or Visual Basic. I would be grateful.

if anyone knows any means of detecting an outgoing local IP (by way of a breakout box or similar) i would be grateful for that info too.


Jason.

James Curran
November 10th, 2001, 10:51 AM
There is an WIN32 API which was added in Win2000 to get the IP address. It will only work on 2000 and XP.

Truth,
James
http://www.NJTheater.com
http://www.NovelTheory.com
I don't do it for the points (OK, maybe I do), but rating a post is a good way for me to know if I helped.

Jason Bennison
November 10th, 2001, 10:58 AM
Ok, that only retrieves the Local IP, i can already do that. How to I CHANGE the local IP address??

Jas

James Curran
November 10th, 2001, 11:17 AM
I believe you are looking for the AddIPAddress() api.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcesdkr4/htm/_wcesdk_win32_addipaddress.asp


Truth,
James
http://www.NJTheater.com
http://www.NovelTheory.com
I don't do it for the points (OK, maybe I do), but rating a post is a good way for me to know if I helped.

smartnose
February 6th, 2002, 11:45 PM
Remarks
The IP address created by AddIPAddress is not persistent. The address exists only as long as the adapter object exists. Restarting the computer destroys the address, as does manually resetting the network interface card (NIC). Also, certain PnP events may destroy the address.