Change IP address and HostName of NT machine

Environment: NT4 SP5

How to set local machine IP addresses from your program ?

Follow this steps :

1. Open registry on the HKEY_LOCAL_MACHINE

2. Find the subKey = SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\"netcard# "

"netcard# " usually is "1" but you can control any subkey and find specific netwrok Adapters

Refer to "MSDN Registry Entries for Network Adapter Cards"

3. Get data for the value "ServiceName"

4. Find the subKey = SYSTEM\CurrentControlSet\Services\"ServiceName"\Parameters\TcpIp"

5. Set data for the value "IpAddress" to change IP address

6. Set data for the value "SubnetMask" to change subnet mask

7. Set data for the value "DefaultGateway" to change default gateway

8. Reboot your PC.

How to set local machine HostName from your program ?

Follow this steps :

1. Open registry on the HKEY_LOCAL_MACHINE

2. Find the subKey = SYSTEM\CurrentControlSet\Services\TcpIp\Parameters

3. Set data for the value "HostName"

4. Find the subKey = SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName

5. Set data for the value "ComputerName"

6. Reboot your PC and HostName will be set.

WARNING: Modify registry incorrect can cause serious, system-wide problems . Use this at your own risk

History



Comments

  • Scan, honest a exam

    Posted by Dyncintognoxy on 01/20/2013 07:52pm

    We [url=http://www.casinogames.gd]casinos online[/url] have a large library of totally unsolicited casino games as a replacement for you to challenge right here in your browser. Whether you appetite to practice a provisions game scenario or scarcely try exposed a few modern slots once playing on the side of real in dough, we have you covered. These are the claim same games that you can engage at earnest online casinos and you can play them all quest of free.

    Reply
  • Inspection, straightforward a exam

    Posted by Dyncintognoxy on 01/20/2013 07:21pm

    We [url=http://www.nodepositbonus.gd]casino[/url] be suffering with a corpulent library of unqualifiedly unconditional casino games championing you to play opportunely here in your browser. Whether you pine for to training a provender game strategy or honest sample manifest a few original slots once playing on the side of genuine filthy lucre, we procure you covered. These are the rigid verbatim at the same time games that you can play at earnest online casinos and you can part of them all quest of free.

    Reply
  • Enquiry, upstanding a exam

    Posted by Dyncintognoxy on 01/20/2013 06:06pm

    We [url=http://www.onlinebaccarat.gd]roulette[/url] have a corpulent library of utterly freed casino games as a replacement for you to sport sensibly here in your browser. Whether you appetite to training a provender encounter plan or honest try manifest a some late slots once playing seeking real in dough, we possess you covered. These are the rigid uniform games that you can engage at veritable online casinos and you can with them all for free.

    Reply
  • Scourge in the flesh, valid a third scale

    Posted by Dyncintognoxy on 01/20/2013 06:19am

    We [url=http://www.nodepositbonus.gd]casino[/url] have a corpulent library of utterly unconditional casino games as a replacement for you to challenge opportunely here in your browser. Whether you want to procedure a mesa game master plan or honest attempt exposed a insufficient modern slots before playing for legitimate filthy lucre, we have you covered. These are the exacting verbatim at the same time games that you can play at veritable online casinos and you can join in them all in requital for free.

    Reply
  • Look into, permanent a exam

    Posted by Dyncintognoxy on 01/20/2013 06:11am

    We [url=http://www.onlinebaccarat.gd]craps[/url] be suffering with a corpulent library of utterly unconditional casino games in regard to you to challenge opportunely here in your browser. Whether you want to practice a provisions encounter plan or honest sample elsewhere a few late slots before playing on the side of genuine money, we possess you covered. These are the exact same games that you can engage at earnest online casinos and you can part of them all in requital for free.

    Reply
  • Changing assigned IP address

    Posted by Chrispcritters on 05/17/2005 04:26pm

    For instructions on changing a dynamically assigned IP address visit: http://beta.whatismyipaddress.com/staticpages/index.php/changeip

    Reply
  • Question - for Win 2000

    Posted by nealhauser on 03/22/2004 10:12am

    Will changing the registry as per the instructions detailed in this article work on a computer running win 2K? Does one have to reboot the computer to cause the changes to be accepted and used?

    Reply
  • java coding to change ip address automatically to log on different network without restarting.

    Posted by Legacy on 02/25/2004 12:00am

    Originally posted by: rajee

    i am in india.
    my project is
    "plugin utility for ip configuration".i am doing this project for railways
    my doubts are:
    1> in an intranet consisting of 3 or 4 networks.
    i need my system to have list of ip address.as i choose one(ip address) i should automatically login
    to retrive data in requested system without reboting or restarting.
    plz help me.
    i need java coding for it.so plz send me if u know it as soon as possible.
    i will be very thankfull if u help me as soon as possible.

    • RE: JimN

      Posted by mikewang on 05/27/2004 11:13pm

      I am in china. Could you give me some advice of it ? I need c/c++ coding for it. plz send me details to mikewang@tgegroup.com, or post it here. thanks for your help.

      Reply
    • RE: change ip address in an intranet without reboot

      Posted by JimN on 05/27/2004 07:20pm

      I know its been over a year since you posted this question and I'm not sure if replies are simply posted on the web site or actually emailed to the poster, but I'd like to know if you ever figured out how to accomplish what you were trying to do here. If so, please contact me. Thanks

      Reply
    Reply
  • Using remote system for changing the date and time in win9X

    Posted by Legacy on 01/06/2004 12:00am

    Originally posted by: somu

    Can u please help me changing the date and time of the other systems in network, sitting right on one of the client. We use win2000 for networking and all other clients are win98se.
    

    Reply
  • How to Change Win9x IP Address through Registry

    Posted by Legacy on 11/27/2003 12:00am

    Originally posted by: Shekhar

    can any 1 help me how to change IP address of win 95 and win 98 machine through registry ..??? i already gone throuh the this link http://codeguru.earthweb.com/network/change_ip.shtml , but here they gave abt win xp,2000 and NT machine so pls give the examples mail me at shekharkoli@rediffmail.com
    hope won't disappoint me..
    thanks in advance

    regards
    -shekhar

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Event Date: April 15, 2014 The ability to effectively set sales goals, assign quotas and territories, bring new people on board and quickly make adjustments to the sales force is often crucial to success--and to the field experience! But for sales operations leaders, managing the administrative processes, systems, data and various departments to get it all right can often be difficult, inefficient and manually intensive. Register for this webinar and learn how you can: Align sales goals, quotas and …

  • Live Event Date: August 19, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT You deployed your app with the Bluemix PaaS and it's gaining some serious traction, so it's time to make some tweaks. Did you design your application in a way that it can scale in the cloud? Were you even thinking about the cloud when you built the app? If not, chances are your app is going to break. Check out this upcoming eSeminar to learn various techniques for designing applications that will scale successfully in Bluemix, for the …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds