Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 4th, 2003, 08:13 AM
bonechair's Avatar
bonechair bonechair is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Cape Town
Posts: 477 bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 22 m 42 sec
Reputation Power: 10
DHCP autoconfig proggy?

Hi

I have a client who has a internet cafe with a DHCP server that assigns ip's to individual computers.. Now there are people who come with laptops and want to connect to this network and he has to go and set the network settings to "Obtain an IP address automatically"

My question is. Is there somekind of script or executable file that you can put on a disk to automatically do this?

Thank you kindly
Louis
__________________
http://www.capeseo.com

Reply With Quote
  #2  
Old September 4th, 2003, 02:04 PM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 81
Yes, you can use netsh.exe.

Here is the complete doc of it:

http://www.microsoft.com/windowsxp/...oc/en/netsh.asp

Run the followind in a .cmd or .bat script:


Code:
netsh interface ip set address source=dhcp


This works on NT platform computers.

Reply With Quote
  #3  
Old September 5th, 2003, 02:08 AM
bonechair's Avatar
bonechair bonechair is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Cape Town
Posts: 477 bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 22 m 42 sec
Reputation Power: 10
Thanks you thank you thank you
Now I just have to find a way for windows98

Reply With Quote
  #4  
Old September 5th, 2003, 02:31 AM
bonechair's Avatar
bonechair bonechair is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Cape Town
Posts: 477 bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level)bonechair User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 10 h 22 m 42 sec
Reputation Power: 10
For Win2000 its
netsh interface ip set address "Local Area Connection" dhcp
It works for XP too

Reply With Quote
  #5  
Old September 5th, 2003, 09:39 AM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 81
Yes, good point. You need to specify the name of the interface that you want to set.


Good luck with Win98. If you find something, let me know. I have been searching for years now.

As far as I understand, this is not possible because Win98 does not have the ability to dynamically unload and reload network components. Even if you do manage to pass it a new ip address (maybe via the registry?) you would still have to reboot for it to take effect.

Reply With Quote
  #6  
Old October 3rd, 2003, 01:11 PM
jpickett jpickett is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Salt Lake City, UT
Posts: 10 jpickett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If I remember correctly, you can actually go into Device Manager in Win9x and disable and then enable a given NIC after you modify TCP/IP settings. It made things a lot easier than rebooting when you change something.

Haven't really thought how you'd do this programmatically, but if you can do it, it should work...?

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > DHCP autoconfig proggy?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT