Solved

change ip adderss in win2k

Posted on 2001-06-10
4
364 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now