|
-
Jun 18th, 2000, 09:39 PM
#1
Thread Starter
Lively Member
I have been looking for a way to change the IP address of a local machine. I was able to locate the IP address registry entry. I ran into a problem, though, with changing it via registry API calls due to formatting that I was unable to work out.
My second idea was to create a .reg file and merge it. I was able to produce the file, but calling ShellExecute on the file does not do what I would have expected.
If you have any suggestions as to a solution for this problem, it would be greatly appreciated. I have been working on it for quite some time now.
Jay
-
Jun 19th, 2000, 02:40 AM
#2
Lively Member
I dont think so...you can change the IP of a machine the IP is assined by your ISP and cannot be changed. If you do you might get the same IP as someone else! Dont see whats wrong with that?
Say you registered a doman: yahoo.com
and some one else registered a domain: yahoo.com
when I type in Yahoo.com where will it take me which website?! Same problem with IPs They are what identifies you on the internet and are distributed by some organization in cali...the org. sends out the IPs to the ISPs which then give the IPs to you. Therefore no one has the same IP. But if you change the IP you can get someone elses IP and cause problems so I dont think you can.
Please critiseze me if im wrong
-
Jun 19th, 2000, 02:51 AM
#3
Thread Starter
Lively Member
Actually, I am a network/systems admin who is working on a piece of software that will update a group of machines on my internal network. We have a block of IP's that we can use on any machine.
I am merely changing the IP within the network settings. I can do it fine manually; it is the fact that I cannot get my program to do it.
Thanks.
-
Jul 9th, 2000, 05:53 PM
#4
Addicted Member
Details
Can you give a few more details?
exact key you are changing?
system (Win 9x, NT, 200)
etc
Regards
Regards
Matt Brown
Hamilton, NZ
VB6 C++ in Visual Studio 6sp4
VB.net Beta 1
-
Jul 10th, 2000, 01:12 PM
#5
Editing Registry
I was not aware you could change the IP of a machine simply by editing the registry. Even if you can do it, there's no way to catch an error (ie. duplicate address, couldn't find gateway, so on...) so it's probably not a good idea.
Your registry "formatting" problems are probably Unicode string issues if you're working in NT.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|