|
-
May 15th, 2002, 10:58 AM
#1
Thread Starter
Hyperactive Member
Change IP Address
How do you change the IP address of your computer programmatically? Thank you for any help.
Joe
-
May 15th, 2002, 11:32 AM
#2
Lively Member
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?
-
May 15th, 2002, 12:35 PM
#3
Thread Starter
Hyperactive Member
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
-
May 15th, 2002, 12:40 PM
#4
PowerPoster
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.
-
May 15th, 2002, 12:54 PM
#5
Thread Starter
Hyperactive Member
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
-
May 15th, 2002, 01:01 PM
#6
PowerPoster
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.
-
May 15th, 2002, 01:21 PM
#7
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|