Solved

change ip adderss in win2k

Posted on 2001-06-10
4
371 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that extends its U/I with a flyout panel -- a window that pops out next to the gadget.  The example gadget shows several additional techniques:  How to automatically resize a gadget or flyout panel t…
This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

617 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