Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Good day.
I'm searching for a way to change the IP address of my Winnt 4 server from the command line.
If I had more info, I could get one of our programmers to make a program for it in VB or Visual C++.
I need the change to be immediate, without rebooting the computer.

I just ask one question before I attempt an answer.
Why?
It would kill all connections to the server leaving workstations in a bad state (probably crashing) would mean no one could log on until they rebooted (assuming its acting as a wins/dhcp/print server too of some kind.
Just curious as to why you'd want to do it?

Well....
When I go in the networking properties, protocol tab and in TCP/IP, I can change the IP address and exit without rebooting.
Why I want to do that ?
Because my server is used on 2 different network, but only 1 can access it at a time and I don't want to install 2 network cards.

You could Multihome it - i.e. assign 2 ip's to one network card. That does depend oon your network makeup though as to its feasability.
I can't remember ever seeing one that will do this (as NT requires a reboot according to MS though you might not find one)
If you do a regedit and search for your current IP it's contained under HKLM/System/CurrentControlSet/
/Parameters/TCPIP/ on my system here. Its under the DHCP subkey so I'm assuming its in the same place if its static. What might be an idea is to get a registry tracking program to track all the changes that go into the registry when you make a change and save the key out. Change back and change the keys out again and then it might work to just evexute each .reg file as you want to swop back and forth between the IP's.
An interesting problem I'll have a think about it tonght...

You're right about the registry, but Windows executes something to make the modification applicable right now.
That's what I want to do.

Hello,
In Win2000 we can do that by using NETSH in the command line prompt. Maybe it exists as well in the NT. You can try that.
Daniel

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |