Solved

change ip adderss in win2k

Posted on 2001-06-10
4
367 Views
Last Modified: 2013-12-03
I would like to know if there is an api function in win2k
to change NIC's ip address without rebooting the computer.
Also to change from static ip to DHCP settings, again without rebooting.

Thanks.
0
Comment
Question by:dudil
4 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6173931
See:

http://jwhance.elosoft.com/alcoholic_texts.htm

It's a copy of a now missing web page that describes a useful technique for this.  While it's targeted at NT4, this works on Windows 2000 (and so far on Windows XP) also.

There is an API in the IPHLPAPI.DLL starting in Win2000 called AddIpAddress() but you'll find that it is practically useless.  Further, an investigation of what Microsoft does in the Network Control Panel reveals that they use the DhcpNotifyConfigChange() call as described in the article.
0
 

Accepted Solution

by:
CetusMOD earned 0 total points
ID: 10661722
PAQed - no points refunded (of 100)

CetusMOD
Community Support Moderator
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question