Results 1 to 5 of 5

Thread: IP Address changing

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Atlanta, GA
    Posts
    75

    Question

    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

  2. #2
    Lively Member
    Join Date
    Jun 2000
    Posts
    67

    Exclamation

    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

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 1999
    Location
    Atlanta, GA
    Posts
    75
    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.

  4. #4
    Addicted Member
    Join Date
    Aug 1999
    Location
    Hamilton, New Zealand
    Posts
    137

    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

  5. #5
    Guest

    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
  •  



Click Here to Expand Forum to Full Width