Funny, I just tackled this problem for our service provisioning system. Use the AddIPAddress function call in the iphelper API.
You'll need to know C++ to use it.
 
Jon
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan
Sent: Saturday, February 03, 2001 6:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [IMail Forum] IP question

Not really the right forum for this, but ....

The IPs are stored in the registry, not in a text file. The host file is simply for name resolution. In order to do a mass addition, you need to do one of a couple things.

1) Create a program that adds the IPs and the subnets to the registry, via an API call.
2) Create a simple script with netsh (since you said it was win2k), and drop them in that way.

Number 2 would be the simplest solution. Feel free to contact me off-list if you have additional needs or concerns on this.

Best Regards,

Jonathan

At 03:01 AM 2/3/2001 -0800, you wrote:
List:
 
I run servers with a C Block of IPs on Windows 2000 Server, is there a way besides the stupid network panel to bind ip address? I've got all 254 of them typed in a text file, I know there is a host file, isn't there a file that i could edit to put all the ips in quickly?
 
Thanks,
 
Court Kizer : web developer, daydreamer
[EMAIL PROTECTED]
http://www.sharpwebinnovations.com
888.465.1148

Reply via email to