Computing.Net > Forums > Windows NT > NT 4 Server: Changing IP address from command line

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

NT 4 Server: Changing IP address from command line

Reply to Message Icon

Name: Daniel Laframboise
Date: November 7, 2000 at 05:42:47 Pacific
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: gary.blandford-hull@ (by GBH)
Date: November 7, 2000 at 07:11:15 Pacific
Reply:

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?


0

Response Number 2
Name: Daniel Laframboise
Date: November 7, 2000 at 08:05:39 Pacific
Reply:

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.


0

Response Number 3
Name: gary.blandford-hull@ (by GBH)
Date: November 7, 2000 at 08:55:58 Pacific
Reply:

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...


0

Response Number 4
Name: Daniel Laframboise
Date: November 7, 2000 at 10:28:52 Pacific
Reply:

You're right about the registry, but Windows executes something to make the modification applicable right now.

That's what I want to do.


0

Response Number 5
Name: Daniel Fidalgo
Date: November 26, 2000 at 03:38:33 Pacific
Reply:

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: NT 4 Server: Changing IP address from command line

T1 and NT 4 server www.computing.net/answers/windows-nt/t1-and-nt-4-server/7791.html

NT 4 won't obtain dhcp # from cablem mod www.computing.net/answers/windows-nt/nt-4-wont-obtain-dhcp-from-cablem-mod/13970.html

Windows NT 4 Server www.computing.net/answers/windows-nt/windows-nt-4-server/22552.html