Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

IP Address Changes "on the fly"

Posted on 2000-04-03
7
Medium Priority
?
198 Views
Last Modified: 2010-04-10
How can I change fixed  IP addresses "on the fly" from a Win32 application in a documented/supported way that works for Win98, WinNT, and Win2000?
0
Comment
Question by:quirky
  • 4
  • 3
7 Comments
 

Author Comment

by:quirky
ID: 2681834
Adjusted points from 100 to 200
0
 
LVL 32

Accepted Solution

by:
jhance earned 800 total points
ID: 2681847
The method outlined in this article works for NT4 and W2K:

http://www.slon.sk/Slon/setip-nt-howto.htm

The AddIpAddress() function from IPHLPAPI.DLL works in Win98 and W2K.  It's documented in the current SDK.

The only OS that really can't do this at all is Win95.
0
 

Author Comment

by:quirky
ID: 2683853
Thanks for your input.  We are currently using the "hacker" method in the URL you mentioned for NT4. We found the AddIpAddress() function in IPHLPAPI.DLL but have no current documentation in v6.0 of the C++ developers kit. Once we have found this and verified - I will award the points. We are not concerned about Win95 at this time - apparently a good thing.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 32

Expert Comment

by:jhance
ID: 2684215
0
 

Author Comment

by:quirky
ID: 2684779
The URL for the documentation indicates that Win98 is unsupported - have you tried it and found it to work? We don't have the latest developer's kit so I will take your word for it. We're going to get it as soon as possible.
0
 
LVL 32

Expert Comment

by:jhance
ID: 2684863
Yes, in spite of the note in the SDK, the AddIpAddress export from IPHLPAPI.DLL for Win98 does seem to work.  I suspect that some of the other functions in this DLL don't work as advertised, however.

As always though, you should use caution when using undocumented (or underdocumented) features.  There may be specific instances or combinations of system components that may make this function non-operational.  

One tipoff I had that this worked on Win98 is that AOL 4.0 distributes iphlpapi.dll and indeed uses the AddIpAddress function when running on Win98.  I'm sure that AOL get's "inside" information that is generally unvailable to low-level hacks like us.
0
 

Author Comment

by:quirky
ID: 2751719
We have not been able to get this to work on Win 98. jhance, if your there, do you have any tips?
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Article by: evilrix
Looking for a way to avoid searching through large data sets for data that doesn't exist? A Bloom Filter might be what you need. This data structure is a probabilistic filter that allows you to avoid unnecessary searches when you know the data defin…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

916 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