Discussion Locked

How to release an IP address from DOS

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Is there a utility available somewhere that will release the IP address of a computer that will run from DOS (not from within Windows 95)?

I need to release the IP address on 100 Windows 95 workstations as part of resolving a DHCP table corruption problem on a Novell v4.11 server. I would like to create a DOS boot diskette to use on each of the workstations that will execute a batch file at the end of AUTOEXEC.BAT that executes a program that will release the IP address of that workstation. The Microsoft Windows program WINIPCFG can be used in a batch file using a command line parameter to release the IP address but it only works from Windows 95 or from a Windows 95 MS-DOS prompt (WINIPCFG will not work if you boot to DOS outside of Windows 95). I could do this by booting into Windows 95 but it will be much quicker to do this by booting to DOS.

I also tried the Windows NT IPCONFIG.EXE program after bootong from a DOS boot diskette but it also cannot be run in DOS mode.

Another alternative could be if someone can tell me where Windows 95 stores the IP address information (in the registry or in some other place). I tried searching the registry for my IP address but it is not found. If I could find where it is stored, then possibly I could create a routine to delete or change that information from a DOS batch file.

Thanks to anyone who can help me out.

6 replies

by swilliam

see microsoft tid# Q154488. it references using the ipconfig.exe utility from either win 3.11 or from win98. try them and see if one works for you.

hope this helps!

by bkoopers

Microsoft technical note Q154488 refers to using the version of IPCONFIG that comes with
Windows for Workgroups 3.11. Where can a get a copy of that version of IPCONFIG from?

by rmount

This is intersting. You don't go into details about where the DHCP corruption is though. You can recreate the Netware DHCP tab pretty easily. I've had Netware DHCP tab go corrupt on me before.

My approach would be to do this through the login script. I don't know of a way that will release an IP address in Win9x without having the GUI running (i.e. Network Stack loaded). That said, here's something that should work from the login script.

IPCONFIG from WFWG or Win98 will work. However, here's something easier:

WINIPCFG has some command line switches. Try this:

WINIPCFG /RELEASE_ALL
WINIPCFG /RENEW_ALL

You can run right from a dos prompt (inside windows) or a batch file. I've got this setup for remote users who have laptops that visit remote sites and it works great! However, these are WIN98 machines, i've never tried on Win95 (and frankly haven't got a Win95 box anywhere to test this on). If it doesn't work, you might be able to take winipcfg from a win98 machine.

--Rob

This discussion is closed to new replies.