Results 1 to 7 of 7

Thread: Change IP Address

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Change IP Address

    How do you change the IP address of your computer programmatically? Thank you for any help.

    Joe

  2. #2
    Lively Member
    Join Date
    May 2002
    Location
    Canada
    Posts
    75
    what do you mean by change it?
    is it DHCP? you just want to release and renew it?
    or you want to actually hardcode in a different ip address?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352
    I want to physically assign a specific ip address to the computer. I can simulate the actions of opening network properties, viewing the tcp/ip properties, and setting it to obtain an IP address, subnet mask, and default gateway. Is there anyway to change those 3 via API or some similiar means? Thank you

    Joe

  4. #4
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    This info is probably stored in the registry. I don't have access to regedit at school, but try inputting your own subnet mask, then go to regedit and search for that specific number. When you find it, that is where it is stored in the registry.
    <removed by admin>

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    Thank you but...

    If at all possible, I would rather simply to use some API call. API calls are more convenient and easier to document(when they exist). Thank you again.

    Joe

  6. #6
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    You will have to use the API to access the registry from your program. I was just giving you a way to find it out, then once you know where it is, you can use one of the modules available on this site that let you access the registry.
    <removed by admin>

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2000
    Posts
    352

    I know how to access the registry but...

    In Windows NT particularly, editing the registry in such a way to affect all users can be tricky. If at all possible, I would like to use API to change the IP address(not API to edit the registry). Thank you

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